219 {
221
223
224 if ( pos > 0 )
225 {
227 int pos_end = text.
Length() - pos;
228 string param_value = text.
Substring(pos + 1, pos_end - 1).
Trim();
229
230 int lenght = param_value.
Length();
231 if (lenght > 1 && param_value.
Substring(0, 1) ==
"\"" && param_value.
Substring(lenght - 1, 1) ==
"\"" )
232 {
233 param_value = param_value.
Substring(1, lenght - 2);
234 }
235
236 ret.Insert(param_name);
237 ret.Insert(param_value);
238 }
239
240 return ret;
241 }
array< string > TStringArray
proto native int Length()
Returns length of string.
proto string Trim()
Returns trimmed string with removed leading and trailing whitespaces.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
proto native int IndexOf(string sample)
Finds 'sample' in 'str'. Returns -1 when not found.