Removes characters from both ends of a given string until encountering a character not included in the specified set of characters.
| Syntax | btrim(<str>[, <chars>]) | ||
| Arguments | Name | Type | Description |
<str> | Textual | The original string | |
<chars> | STRING | The set of characters to look for; it defaults to a space | |
| Return Type | STRING | ||
UQLreturn btrim(" Ultipa Graph ") AS newString
Result:
| newString |
|---|
Ultipa Graph |
UQLreturn btrim("123ABC341", "123") AS newString
Result:
| newString |
|---|
| ABC34 |
Checks whether a string ends with a specified substring, returning 1 for true and 0 for false.
| Syntax | endsWith(<str>, <subStr>) | ||
| Arguments | Name | Type | Description |
<str> | Textual | The input string | |
<subStr> | STRING | The substring to look for | |
| Return Type | STRING | ||
UQLreturn endsWith("ultipa.com", "com")
Result:
| endsWith("ultipa.com", "com") |
|---|
| 1 |
Returns the number of characters in a string.
| Syntax | length(<str>) | ||
| Arguments | Name | Type | Description |
<str> | Textual | The input string | |
| Return Type | UINT | ||
UQLreturn length("Ultipa Graph")
Result:
| length("Ultipa Graph") |
|---|
| 12 |
Converts all the characters in a given string to lowercase.
| Syntax | lower(<str>) | ||
| Arguments | Name | Type | Description |
<str> | Textual | The original string | |
| Return Type | STRING | ||
UQLreturn lower("Ultipa Graph")
Result:
| lower("Ultipa Graph") |
|---|
| ultipa graph |
Removes characters from the begining of a given string until encountering a character that is not contained in the specified set of characters.
| Syntax | ltrim(<str>[, <chars>]) | ||
| Arguments | Name | Type | Description |
<str> | Textual | The original string | |
<chars> | STRING | The set of characters to look for; it defaults to a space | |
| Return Type | STRING | ||
UQLreturn ltrim(" Ultipa Graph ") AS newString
Result:
| newString |
|---|
Ultipa Graph |
UQLreturn ltrim("124ABC341", "123") AS newString
Result:
| newString |
|---|
| 4ABC341 |
Removes characters from the end of a given string until encountering a character that is not contained in the specified set of characters.
| Syntax | rtrim(<str>[, <chars>]) | ||
| Arguments | Name | Type | Description |
<str> | Textual | The original string | |
<chars> | STRING | The set of characters to look for; it defaults to a space | |
| Return Type | STRING | ||
UQLreturn rtrim(" Ultipa Graph ") AS newString
Result:
| newString |
|---|
Ultipa Graph |
UQLreturn rtrim("123ABC4321", "123") AS newString
Result:
| newString |
|---|
| 123ABC4 |
Splits a string into a list of substrings using the specified delimiter.
| Syntax | split(<str>, <delimiter>) | ||
| Arguments | Name | Type | Description |
<str> | Textual | The input string | |
<delimiter> | STRING | The delimiter | |
| Return Type | LIST | ||
UQLreturn split("apple, pumpkin, lemon tart", ", ") as strList
Result:
| strList |
|---|
| ["apple","pumpkin","lemon tart"] |
Checks whether a string begins with a specified substring and returns 1 for true or 0 for false.
| Syntax | startsWith(<str>, <subStr>) | ||
| Arguments | Name | Type | Description |
<str> | Textual | The input string | |
<subStr> | STRING | The substring to look for | |
| Return Type | STRING | ||
UQLreturn startsWith("ultipa.com", "ultipa")
Result:
| startsWith("ultipa.com", "ultipa") |
|---|
| 1 |
Converts all the characters in a given string to uppercase.
| Syntax | upper(<str>) | ||
| Arguments | Name | Type | Description |
<str> | Textual | The original string | |
| Return Type | STRING | ||
UQLreturn upper("Ultipa Graph")
Result:
| upper("Ultipa Graph") |
|---|
| ULTIPA GRAPH |