Dayz  1.11.153731
Dayz Code Explorer by Zeroy
string Class Reference

Private Member Functions

bool Contains (string sample)
 Retunrs true if sample is substring of string. More...
 
string Get (int index)
 Gets n-th character from string. More...
 
proto native int Hash ()
 Returns hash of string. More...
 
proto native int IndexOf (string sample)
 Finds 'sample' in 'str'. More...
 
proto native int IndexOfFrom (int start, string sample)
 Finds 'sample' in 'str' from 'start' position. More...
 
proto native int LastIndexOf (string sample)
 Finds last 'sample' in 'str'. More...
 
proto native int Length ()
 Returns length of string. More...
 
proto native int LengthUtf8 ()
 Returns number of characters in UTF8 string. More...
 
proto int ParseString (out string tokens[])
 Parses string into array of tokens returns number of tokens. More...
 
proto int ParseStringEx (out string token)
 Parses one token from input string. More...
 
proto int Replace (string sample, string replace)
 Replace all occurrances of 'sample' in 'str' by 'replace'. More...
 
void Set (int n, string _value)
 Sets n-th character in string. More...
 
void Split (string sample, out array< string > output)
 Splits string into array of strings separated by 'sample'. More...
 
proto string Substring (int start, int len)
 Substring of 'str' from 'start' position 'len' number of characters. More...
 
string SubstringInverted (string string_to_split, int position_start, int position_end)
 Inverted SubString. This deletes everything in between position_start and position_end. More...
 
proto string SubstringUtf8 (int startChar, int len)
 Substring of 'str' from 'startChar' position 'len' number of characters for UTF8 strings with multibyte chars. More...
 
proto int ToAscii (string str)
 Converts string's first character to ASCII code. More...
 
proto native float ToFloat ()
 Converts string to float. More...
 
proto native int ToInt ()
 Converts string to integer. More...
 
proto int ToLower ()
 Changes string to lowercase. More...
 
proto native ToType ()
 Returns internal type representation. More...
 
proto int ToUpper ()
 Changes string to uppercase. More...
 
proto vector ToVector ()
 Returns a vector from a string. More...
 
proto string Trim ()
 Returns trimmed string with removed leading and trailing whitespaces. More...
 
proto int TrimInPlace ()
 Removes leading and trailing whitespaces in string. More...
 

Static Private Member Functions

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. More...
 
static proto string ToString (void var, bool type=false, bool name=false, bool quotes=true)
 Return string representation of variable. More...
 

Static Private Attributes

static const string Empty
 

Detailed Description

Definition at line 5 of file EnString.c.


The documentation for this class was generated from the following file: