Skip to content

String library ​

No description available

Functions ​

mnscript
string String.CharAt(string, number) 
  • Returns a character at the index of the string
mnscript
bool String.Contains(string, string) 
  • Looks for a substring within the first string
mnscript
string String.Left(string, number) 
  • Returns the n-th first characters of the string
mnscript
number String.Length(string) 
  • Returns the length of a string
mnscript
string String.Lower(string) 
  • Returns the lower case copy of the string
mnscript
string String.Replace(string, string, string) 
  • Replaces the given character(s) with the replacement
mnscript
string String.Reverse(string) 
  • Returns the string in reverse
mnscript
string String.Right(string, number) 
  • Returns the n-th last characters of the string
mnscript
string[] String.Split(string, string) 
  • Returns an array of strings split by the given delimiter.
mnscript
bool String.StartsWith(string, string) 
  • Returns whether the first string begins with the second string
mnscript
string String.Sub(string, number, number) 
  • Returns a substring of from the start to end index
mnscript
string String.Trim(string) 
  • Trims blank space from either side of the string
mnscript
string String.TrimLeft(string) 
  • Trims blank space from the left of the string
mnscript
string String.TrimRight(string) 
  • Trims blank space from the right of the string
mnscript
string String.Upper(string) 
  • Returns the upper case copy of the string