98 static proto
string ToString(
void var,
bool type =
false,
bool name =
false,
bool quotes =
true);
118 string first_half = string_to_split.
Substring(0, position_start);
119 string second_half = string_to_split.
Substring( position_end, string_to_split.
Length() - position_end );
120 string result = first_half + second_half;
156 proto
int Replace(
string sample,
string replace);
288 return value.IndexOf(sample) != -1;
403 bool line_end =
false;
404 while (line_end ==
false)
406 sep_pos = sep_pos + txt_len + 1;
407 nxt_sep_pos = value.IndexOfFrom(sep_pos, sample);
408 if ( nxt_sep_pos == -1 )
410 nxt_sep_pos = value.Length();
414 txt_len = nxt_sep_pos - sep_pos;
417 text = value.
Substring(sep_pos, txt_len);
449 void Set(
int n,
string _value)
451 string pre = value.Substring(0, n);
453 int length = value.Length() - n;
454 string post = value.Substring(n, length);
455 value = pre + _value + post;
471 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);
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
proto native ToType()
Returns internal type representation. Can be used in runtime, or cached in variables and used for fas...
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.
proto native int ToInt()
Converts string to integer.
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.
proto native float ToFloat()
Converts string to float.
string Get(int index)
Gets n-th character from string.
void Set(int n, string _value)
Sets n-th character in string.
proto int ParseString(out string tokens[])
Parses string into array of tokens returns number of tokens.
proto vector ToVector()
Returns a vector from a string.
proto int ParseStringEx(out string token)
Parses one token from input string. Result is put into token string, and type of token is returned....
proto native int LengthUtf8()
Returns number of characters in UTF8 string.
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 native int IndexOf(string sample)
Finds 'sample' in 'str'. Returns -1 when not found.
proto int ToUpper()
Changes string to uppercase. Returns length.
proto native int ToAscii()
Converts string's first character to ASCII code.
proto native int IndexOfFrom(int start, string sample)
Finds 'sample' in 'str' from 'start' position. Returns -1 when not found.
proto native int HexToInt()
Converts string to integer.
bool Contains(string sample)
Returns true if sample is substring of string.
proto string SubstringUtf8(int startChar, int len)
Substring of 'str' from 'startChar' position 'len' number of characters for UTF8 strings with multiby...
proto native int Hash()
Returns hash of string.
proto string Trim()
Returns trimmed string with removed leading and trailing whitespaces.
vector BeautifiedToVector()
Convert beautified string into a vector.
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.
static const string Empty
proto int ToLower()
Changes string to lowercase. Returns length.
static proto string ToString(void var, bool type=false, bool name=false, bool quotes=true)
Return string representation of variable.
proto native int Length()
Returns length of string.
proto int TrimInPlace()
Removes leading and trailing whitespaces in string. Returns length.
proto native int LastIndexOf(string sample)
Finds last 'sample' in 'str'. Returns -1 when not found.