Skip to content

enhance utility functions#7300

Open
Goober5000 wants to merge 1 commit intoscp-fs2open:masterfrom
Goober5000:cleanup/enhance_utility_h
Open

enhance utility functions#7300
Goober5000 wants to merge 1 commit intoscp-fs2open:masterfrom
Goober5000:cleanup/enhance_utility_h

Conversation

@Goober5000
Copy link
Contributor

@Goober5000 Goober5000 commented Mar 19, 2026

  1. Add optional start_index and num_items parameters to the find/count functions in utility.h.
  2. Fix an accidental recursion bug.
  3. Change appropriate parameters to size_t and cast appropriately.
  4. Add two forms of SCP_vector_contains_lcase.
  5. Enhance sprintf and add sprintf_concat for SCP_string.

@Goober5000 Goober5000 added enhancement A new feature or upgrade of an existing feature to add additional functionality. cleanup A modification or rewrite of code to make it more understandable or easier to maintain. labels Mar 19, 2026
@Goober5000 Goober5000 force-pushed the cleanup/enhance_utility_h branch 5 times, most recently from 46f66c4 to 589bdb9 Compare March 20, 2026 05:19
1. Add optional `start_index` and `num_items` parameters to the find/count functions in utility.h.
2. Fix an accidental recursion bug.
3. Change appropriate parameters to `size_t` and cast appropriately.
4. Add two forms of `SCP_vector_contains_lcase`.
5. Enhance `sprintf` and add `sprintf_concat` for `SCP_string`.
@Goober5000 Goober5000 force-pushed the cleanup/enhance_utility_h branch from 589bdb9 to 49f0001 Compare March 20, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup A modification or rewrite of code to make it more understandable or easier to maintain. enhancement A new feature or upgrade of an existing feature to add additional functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant