StringUtil Script
Revision as of 22:17, 2 February 2014 by imported>CraftySentinel (→SKSE Global Functions: Reverted to List)
Collection of generic string utility global functions. (These global functions require SKSE)
Definition
ScriptName StringUtil
Properties
None
SKSE Global Functions
- Int GetLength(String str)
- Returns the length of the string.
- String GetNthChar(String str, Int n)
- Returns the character at n in str as a string.
- Bool IsLetter(String c)
- Returns whether the character is a letter or not.
- Bool IsDigit(String c)
- Returns whether the character is a digit or not.
- Bool IsPunctuation(String c)
- Returns whether the character is punctuation or not.
- Bool IsPrintable(String c)
- Returns whether the character is printable or not.
- Int 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 Substring(String str, Int startIndex, Int len)
- Returns a portion of the string starting at given index with specified amount of characters.
- Int AsOrd(String c)
- Returns the numeric value of a character.
- String AsChar(Int c)
- Returns the number as a string character.
Member Functions
None
Events
None