StringUtil Script: Difference between revisions

Jump to navigation Jump to search
123 bytes added ,  24 October 2013
m
→‎SKSE Global Functions: Formatting Change
imported>JohnB
imported>CraftySentinel
m (→‎SKSE Global Functions: Formatting Change)
Line 16: Line 16:


== SKSE Global Functions ==
== SKSE Global Functions ==
'''int Function [[GetLength - StringUtil|GetLength]](string str)'''
*Returns the length of the string.


'''string Function [[GetNthChar - StringUtil|GetNthChar]](string str, int n)'''
{|class="wikitable" width =100%
*Returns the character at n in str as a string.
!style="text-align:left;"|Function
!style="text-align:left;"|Description
|-
|[[GetLength - StringUtil|Int '''GetLength'''(String ''str'')]]
|Returns the length of the string.
|-


'''bool Function [[IsLetter - StringUtil|IsLetter]](string c)'''
|[[GetNthChar - StringUtil|String '''GetNthChar'''(String ''str'', Int ''n'')]]
*Returns whether the character is a letter or not.
|Returns the character at n in str as a string.
|-


'''bool Function [[IsDigit - StringUtil|IsDigit]](string c)'''
|[[IsLetter - StringUtil|Bool '''IsLetter'''(String ''c'')]]
*Returns whether the character is a digit or not.
|Returns whether the character is a letter or not.
|-


'''bool Function [[IsPunctuation - StringUtil|IsPunctuation]](string c)'''
|[[IsDigit - StringUtil|Bool '''IsDigit'''(String ''c'')]]
*Returns whether the character is punctuation or not.
|Returns whether the character is a digit or not.
|-


'''bool Function [[IsPrintable - StringUtil|IsPrintable]](string c)'''
|[[IsPunctuation - StringUtil|Bool '''IsPunctuation'''(String ''c'')]]
*Returns whether the character is printable or not.
|Returns whether the character is punctuation or not.
|-


'''int Function [[Find - StringUtil|Find]](string str, string toFind, int startIndex)'''
|[[IsPrintable - StringUtil|Bool '''IsPrintable'''(String ''c'')]]
*Returns the index of the first occurence of specified phrase inside the string, starting at given position.
|Returns whether the character is printable or not.
|-


'''string Function [[Substring - StringUtil|Substring]](string str, int startIndex, int len)'''
|[[Find - StringUtil|Int '''Find'''(String ''str'', String ''toFind'', Int ''startIndex'')]]
*Returns a portion of the string starting at given index with specified amount of characters.
|Returns the index of the first occurence of specified phrase inside the string, starting at given position.
|-


'''int Function [[AsOrd - StringUtil|AsOrd]](string c)'''
|[[Substring - StringUtil|String '''Substring'''(String ''str'', Int ''startIndex'', Int ''len'')]]
*Returns the numeric value of a character.
|Returns a portion of the string starting at given index with specified amount of characters.
|-


'''string Function [[AsChar - StringUtil|AsChar]](int c)'''
|[[AsOrd - StringUtil|Int '''AsOrd'''(String ''c'')]]
*Returns the number as a string character.
|Returns the numeric value of a character.
|-
 
|[[AsChar - StringUtil|String '''AsChar'''(Int ''c'')]]
|Returns the number as a string character.
|-
 
|}


== Member Functions ==
== Member Functions ==

Navigation menu