Method | Description |
Find:Int( subString:String,startIndex=0 ) | Finds first occurance of a sub string. Returns -1 if subString not found. |
FindLast:Int( subString:String,startIndex=0 ) | Finds last occurance of a sub string. Returns -1 if subString not found. |
Trim:String() | Removes leading and trailing non-printable characters from a string. |
Replace:String( subString:String,withString:String ) | Replaces all occurances of subString with withString. |
ToLower:String() | Converts a string to lowercase. |
ToUpper:String() | Converts a string to uppercase. |
ToInt:Int() | Converts a string to an integer. |
ToLong:Long() | Converts a string to a long. |
ToFloat:Float() | Converts a string to a float. |
ToDouble:Float() | Converts a string to a double. |
ToCString:Byte Ptr() | Converts a string to a null terminated sequence of 8 bit bytes. The returned memory will remain valid until the next call to FlushMem. |
ToWString:Short Ptr() | Converts a string to a null terminated sequence of 16 bit shorts. The returned memory will remain valid until the next call to FlushMem. |
Function | Description |
FromInt:String( value:Int ) | Creates a string from an integer. |
FromLong:String( value:Long ) | Creates a string from a long. |
FromFloat:String( value:Float ) | Creates a string from a float. |
FromDouble:String( value:Double) | Creates a string from a double. |
FromCString:String( cString:Byte Ptr ) | Creates a string from a null terminated sequence of 8 bit bytes. |
FromWString:String( wString:Short Ptr ) | Creates a string from a null terminated sequence of 16 bit shorts. |
FromBytes:String( bytes:Byte Ptr,length ) | Creates a string from a sequence of length 8 bit bytes. |
FromShorts:String( shorts:Short Ptr,length ) | Creates a string from a sequence of length 16 bit shorts. |