StringUtil Script: Difference between revisions
Jump to navigation
Jump to search
imported>Kahmul (uppercase -> lowercase) |
imported>JohnB |
||
| Line 43: | Line 43: | ||
*Returns the string as lowercase. | *Returns the string as lowercase. | ||
'''int Function [[Find - StringUtil|Find]](string str, string | '''int Function [[Find - StringUtil|Find]](string str, string toFind, int startIndex)''' | ||
*Returns the index of the | *Returns the index of the first occurence of specified phrase inside the string, starting at given position. | ||
'''int Function [[Substring - StringUtil|Substring]](string str, int | '''int Function [[Substring - StringUtil|Substring]](string str, int startIndex, int len)''' | ||
*Returns a portion of the string starting at | *Returns a portion of the string starting at given index with specified amount of characters. | ||
'''int Function [[AsOrd - StringUtil|AsOrd]](string c)''' | '''int Function [[AsOrd - StringUtil|AsOrd]](string c)''' | ||
Revision as of 17:10, 19 August 2012
Collection of generic string utility global functions. (These global functions require SKSE)
Definition
ScriptName StringUtilProperties
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 IsUppercase(string c)
- Returns whether the character is uppercase or not.
bool Function IsLowercase(string c)
- Returns whether the character is lowercase or not.
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.
string Function ToUpper(string str)
- Returns the string as uppercase.
string Function ToLower(string str)
- Returns the string as lowercase.
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.
int 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 character as a number.
string Function AsChar(int c)
- Returns the number as a string character.
Member Functions
None
Events
None