Difference between revisions of "SKSE Wish List"

399 bytes added ,  16:49, 8 February 2015
→‎StringUtils: Prettier formatting, and added StringFind
imported>Leng
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.
  StringReplace (String sOriginal, String sOldSubstr, String sNewSubstr, int Flags)
:<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===
Anonymous user