7 static const string Empty;
20 proto native
int ToInt();
33 proto native
int HexToInt();
46 proto native
float ToFloat();
67 vector BeautifiedToVector()
70 copy.Replace(
"<",
"");
71 copy.Replace(
">",
"");
72 copy.Replace(
",",
" ");
73 return copy.ToVector();
86 proto native
int ToAscii();
95 proto native
typename ToType();
98 static proto
string ToString(
void var,
bool type =
false,
bool name =
false,
bool quotes =
true);
113 proto
string Substring(
int start,
int len);
116 string SubstringInverted(
string string_to_split,
int position_start,
int position_end )
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;
137 proto
string SubstringUtf8(
int startChar,
int len);
156 proto
int Replace(
string sample,
string replace);
199 proto native
int Length();
212 proto native
int LengthUtf8();
223 proto native
int Hash();
240 proto native
int IndexOf(
string sample);
253 proto native
int LastIndexOf(
string sample);
271 proto native
int IndexOfFrom(
int start,
string sample);
286 bool Contains(
string sample)
288 return value.IndexOf(sample) != -1;
319 proto
int TrimInPlace();
349 proto
int ParseStringEx(out
string token);
369 proto
int ParseString(out
string tokens[]);
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);
424 static string Join(
string separator, notnull
TStringArray tokens)
427 foreach (
int i,
string s: tokens)
448 proto
string Get(
int index);
473 proto
void Set(
int index,
string input);
475 #ifdef DIAG_DEVELOPER
487 void OldSet(
int n,
string _value)
489 string pre = value.Substring(0, n);
491 int length = value.Length() - n;
492 string post = value.Substring(n, length);
493 value = pre + _value + post;
511 proto
void Insert(
int index,
string input);
526 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);