Background for Skyrim SE
Member of the DbMiscFunctions script
intfunctionCountStringsInString(strings, stringToFind, boolWholeWordsOnly=false)Global

Description

Documentation Comment

Count the number of String ToFind that occures in String s.
If WholeWordsOnly == true, only counts where the string ToFind occures is surrounded by whiteSpace.
requires skse


Caveats


Parameters

strings

stringToFind

boolWholeWordsOnly=false


Examples

Auto-Generated Example

string myString__s
string myString__ToFind
bool myBool__WholeWordsOnly

int returnedValue = DbMiscFunctions.CountStringsInString(myString__s, myString__ToFind, myBool__WholeWordsOnly)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.