Difference between revisions of "SKSE Wish List"
→StringUtils: Prettier formatting, and added StringFind
imported>Leng (→Form) |
imported>DavidJCobb (→StringUtils: Prettier formatting, and added StringFind) |
||
Line 107: | Line 107: | ||
===StringUtils=== | ===StringUtils=== | ||
*'''StringReplace ''' - Replace characters/substrings in an existing string. | *'''StringReplace''' - Replace characters/substrings in an existing string. | ||
:<source lang="papyrus">StringReplace(String sOriginal, String sOldSubstr, String sNewSubstr, int Flags)</source> | |||
:Flags for case sensitivity, etc. | :*Flags for case sensitivity, etc. | ||
:Easy enough to do this in Papyrus, but could be more efficient in C++. | :*Easy enough to do this in Papyrus, but could be more efficient in C++. | ||
*'''StringFind''' - Find the index of a substring. | |||
:<source lang="papyrus">StringFind(String asContaining, String asSubstring, Int aiStartFrom = 0, Int aiFlags = 0)</source> | |||
:*Flags for case-sensitivity, and perhaps for starting the search from the end of the string. | |||
:*Ability to start from a certain index using aiStartFrom. | |||
:*Would likely be more efficient in C++. | |||
===Misc=== | ===Misc=== |