Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ResourceName Interface Reference
Inheritance diagram for ResourceName:
[legend]

Public Member Functions

proto external string GetPath ()
 
- Public Member Functions inherited from string
proto external int ToAscii (int index=0)
 Gets the ASCII code of a character in the string.
 
proto external float ToFloat (float default=0.0, int offset=0, out int parsed=-1)
 Parses a float from a string.
 
proto external int ToInt (int default=0, int offset=0, out int parsed=-1)
 Parses an integer from a string.
 
proto external vector ToVector ()
 Returns a vector from a string.
 
proto external string Substring (int start, int len)
 Substring of str from start position len number of characters.
 
proto external string Trim ()
 Returns trimmed string with removed leading and trailing whitespaces.
 
proto external int TrimInPlace ()
 Removes leading and trailing whitespaces in string.
 
proto external int Length ()
 Returns length of string.
 
proto external bool IsEmpty ()
 Determines if string is empty.
 
proto external int Hash ()
 Returns hash of string.
 
proto external int IndexOf (string sample)
 Finds 'sample' in 'str'.
 
proto external int LastIndexOf (string sample)
 Finds last 'sample' in 'str'.
 
proto external int IndexOfFrom (int start, string sample)
 Finds 'sample' in 'str' from 'start' position.
 
proto external bool Contains (string sample)
 Retunrs true if sample is substring of string.
 
proto external bool ContainsAt (string sample, int pos)
 Checks whether the string contains a given substring at a given position.
 
proto external bool StartsWith (string sample)
 Checks whether the string begins with a given substring.
 
proto external bool EndsWith (string sample)
 Retunrs true if string ends with sample, otherwise return false.
 
proto external int Compare (string sample, bool caseSensitive=true)
 Compares with sample and returns an integer less than, equal to, or greater than zero if string is less than, equal to, or greater than sample.
 
proto external int Replace (string sample, string replace)
 Replace all occurrances of 'sample' in 'str' by 'replace'.
 
proto external int ToLower ()
 Changes string to lowercase.
 
proto external int ToUpper ()
 Changes string to uppercase.
 
proto external void Split (string delimiter, notnull out array< string > outTokens, bool removeEmptyEntries)
 Splits string into array of strings separated by delimiter.
 
proto external string Get (int index)
 Gets n-th character from string.
 
proto external bool IsDigitAt (int index)
 Checks whether a character at a given position is a digit.
 
proto external bool IsSpaceAt (int index)
 Checks whether a character at a given position is a whitespace.
 
proto external TypeName ToType ()
 Returns internal type representation.
 

Additional Inherited Members

- Static Public Member Functions inherited from string
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)
 Builds a string using given format and arguments.
 
static proto string ToString (void var, bool type=false, bool name=false, bool quotes=true)
 
- Static Public Attributes inherited from string
static const string Empty
 

Member Function Documentation

◆ GetPath()

proto external string ResourceName.GetPath ( )

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