Difference between revisions of "StringUtil Script"
Jump to navigation
Jump to search
imported>JohnB |
imported>JohnB |
||
Line 21: | Line 21: | ||
'''string Function [[GetNthChar - StringUtil|GetNthChar]](string str, int n)''' | '''string Function [[GetNthChar - StringUtil|GetNthChar]](string str, int n)''' | ||
*Returns the character at n in str as a string. | *Returns the character at n in str as a string. | ||
'''bool Function [[IsLetter - StringUtil|IsLetter]](string c)''' | '''bool Function [[IsLetter - StringUtil|IsLetter]](string c)''' | ||
Line 37: | Line 31: | ||
*Returns whether the character is punctuation or not. | *Returns whether the character is punctuation or not. | ||
''' | '''bool Function [[IsPrintable - StringUtil|IsPrintable]](string c)''' | ||
*Returns the | *Returns whether the character is printable or not. | ||
'''int Function [[Find - StringUtil|Find]](string str, string toFind, int startIndex)''' | '''int Function [[Find - StringUtil|Find]](string str, string toFind, int startIndex)''' | ||
Line 50: | Line 41: | ||
'''int Function [[AsOrd - StringUtil|AsOrd]](string c)''' | '''int Function [[AsOrd - StringUtil|AsOrd]](string c)''' | ||
*Returns the character | *Returns the numeric value of a character. | ||
'''string Function [[AsChar - StringUtil|AsChar]](int c)''' | '''string Function [[AsChar - StringUtil|AsChar]](int c)''' |
Revision as of 18:06, 19 August 2012
Collection of generic string utility global functions. (These global functions require SKSE)
Definition
ScriptName StringUtil
Properties
None
SKSE Global Functions
int Function GetLength(string str)
- Returns the length of the string.
string Function GetNthChar(string str, int n)
- Returns the character at n in str as a string.
bool Function IsLetter(string c)
- Returns whether the character is a letter or not.
bool Function IsDigit(string c)
- Returns whether the character is a digit or not.
bool Function IsPunctuation(string c)
- Returns whether the character is punctuation or not.
bool Function IsPrintable(string c)
- Returns whether the character is printable or not.
int Function Find(string str, string toFind, int startIndex)
- Returns the index of the first occurence of specified phrase inside the string, starting at given position.
string Function Substring(string str, int startIndex, int len)
- Returns a portion of the string starting at given index with specified amount of characters.
int Function AsOrd(string c)
- Returns the numeric value of a character.
string Function AsChar(int c)
- Returns the number as a string character.
Member Functions
None
Events
None