String Helpers
NewGuid
Creates an unique identifier.
NewGuid()
Returns the unique identifier as string.
Return Type: String
Parse
Converts the value to a specific type.
Parse(value, type)
Returns the converted value or nil if parsing fails.
Return Type: Dynamic
ParseCsv
Parses CSV data string and returns it as an object. URLs are also supported.
ParseCsv(csv, [ hasHeaders ], [ columnDelimiter ], [ rowDelimiter ])
Object containing the parsed information.
Return Type: Dynamic
ParseJson
Parses JSON data string and returns it as an object. URLs are also supported.
ParseJson(json)
Object containing the parsed information.
Return Type: Dynamic
StringContains
Returns a value indicating whether a specified substring occurs within this string.
StringContains(value, searchValue)
Returns true if the specified substring occurs within this string.
Return Type: Boolean
StringExplode
Splits a string into substrings that are based on the characters in an array.
StringExplode(value, delimiter)
Returns an array of strings.
Return Type: ListDynamic
StringFromQuery
Split a string on '&' and '='.
StringFromQuery(value)
Returns an key-value based table.
Return Type: ListDynamic
StringIndexOf
Gets the zero-based index of the first occurrence of the specified string in the current.
StringIndexOf(value, searchValue)
Returns a zero-based index of the first occurrence of the specified string.
Return Type: Number
StringJoin
Concatenates 2 string with an optional separator.
StringJoin(value1, value2, [ separator ])
Returns the concatenated string.
Return Type: String
StringSplit
Splits a string into substrings that are based on the characters in an array.
StringSplit(value, delimiter)
Returns an array of strings.
Return Type: ListDynamic
SubString
Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.
SubString(value, start, length)
Substring of the main value.
Return Type: String
Last updated