Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс string

Закрытые члены

proto native int ToInt ()
 Converts string to integer.
 
proto native int HexToInt ()
 Converts string to integer.
 
proto native float ToFloat ()
 Converts string to float.
 
proto vector ToVector ()
 Returns a vector from a string.
 
vector BeautifiedToVector ()
 Convert beautified string into a vector.
 
proto native int ToAscii ()
 Converts string's first character to ASCII code.
 
proto native ToType ()
 Returns internal type representation. Can be used in runtime, or cached in variables and used for faster inheritance checking.
 
proto string Substring (int start, int len)
 Substring of 'str' from 'start' position 'len' number of characters.
 
string SubstringInverted (string string_to_split, int position_start, int position_end)
 Inverted SubString. This deletes everything in between position_start and position_end.
 
proto string SubstringUtf8 (int startChar, int len)
 Substring of 'str' from 'startChar' position 'len' number of characters for UTF8 strings with multibyte chars.
 
proto int Replace (string sample, string replace)
 Replace all occurrances of 'sample' in 'str' by 'replace'.
 
proto int ToLower ()
 Changes string to lowercase. Returns length.
 
proto int ToUpper ()
 Changes string to uppercase. Returns length.
 
proto native int Length ()
 Returns length of string.
 
proto native int LengthUtf8 ()
 Returns number of characters in UTF8 string.
 
proto native int Hash ()
 Returns hash of string.
 
proto native int IndexOf (string sample)
 Finds 'sample' in 'str'. Returns -1 when not found.
 
proto native int LastIndexOf (string sample)
 Finds last 'sample' in 'str'. Returns -1 when not found.
 
proto native int IndexOfFrom (int start, string sample)
 Finds 'sample' in 'str' from 'start' position. Returns -1 when not found.
 
bool Contains (string sample)
 Returns true if sample is substring of string.
 
proto string Trim ()
 Returns trimmed string with removed leading and trailing whitespaces.
 
proto int TrimInPlace ()
 Removes leading and trailing whitespaces in string. Returns length.
 
proto int ParseStringEx (out string token)
 Parses one token from input string. Result is put into token string, and type of token is returned. Input string is left-truncated by the resulting token length.
 
proto int ParseString (out string tokens[])
 Parses string into array of tokens returns number of tokens.
 
void Split (string sample, out array< string > output)
 Splits string into array of strings separated by 'sample'.
 
proto string Get (int index)
 Gets n-th character from string.
 
proto void Set (int index, string input)
 Sets the n-th character in string with the input, replacing previous value.
 
proto void Insert (int index, string input)
 Inserts a string into the n-th index, increasing the string length by the size of the input.
 

Закрытые статические члены

static proto string ToString (void var, bool type=false, bool name=false, bool quotes=true)
 Return string representation of variable.
 
static string Join (string separator, notnull TStringArray tokens)
 
static proto string Format (string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
 Gets n-th character from string.
 

Закрытые статические данные

static const string Empty
 

Подробное описание


Объявления и описания членов класса находятся в файле: