Background for Skyrim SE
Member of the DbMiscFunctions script
intfunctionFindWholeWordString(strings, stringToFind, intStartIndex=0)Global

Description

Documentation Comment

returns the index of the first character of toFind inside string s
returns -1 if toFind is not part of the string or if startIndex is invalid or if the characters preceding and following ToFind in s are not whitespace
Example
FindWholeWordString("TestString", "String") returns -1
FindWholeWordString("Test String", "String") returns 5


Parameters

  1. strings

  2. stringToFind

  3. intStartIndex=0


Examples

Auto-Generated Example

string myString__s
string myString__ToFind
int myInt__StartIndex

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