Open Studio for Big Data
Open Studio for Data Integration
Open Studio for ESB
The StringHandling routine contains several functions which allow you to carry out various kinds of operations and tests on alphanumeric expressions, based on Java methods.
You can access these functions by double-clicking the StringHandling node under the system routines folder in the Repository tree view.
Function |
Description |
Syntax |
---|---|---|
|
Checks whether the expression is arranged in alphabetical order.
Returns the |
|
|
Checks whether the expression contains alphabetical characters only,
or otherwise. Returns the |
|
|
Replaces an element of a string with a defined replacement element and returns the new string. |
|
|
Returns the number of times a substring occurs within a string. |
|
|
Converts all uppercase letters in an expression into lowercase and returns the new string. |
|
|
Converts all lowercase letters in an expression into uppercase and returns the new string. |
|
|
Encloses an expression in double quotation marks. |
|
|
Substitutes all substrings that match the given regular expression in the given old string with the given replacement and returns a new string. |
|
|
Returns the position of the first character in a specified substring,
within a whole string. If the substring specified does not exist in
the whole string, the value |
|
|
Specifies a substring which corresponds to the first n characters in a string. |
|
|
Specifies a substring which corresponds to the last n characters in a string. |
|
|
Calculates the length of a string. |
|
|
Generates a string consisting of a specified number of blank spaces. |
|
|
Encloses an expression in single quotation marks. |
|
|
Generates a particular character a the number of times specified. |
|
|
Deletes the spaces and tabs before the first non-blank character in a string and after the last non-blank character, then returns the new string. |
|
|
Deletes all the spaces and tabs after the last non-blank character in a string and returns the new string. |
|
|
Deletes all the spaces and tabs preceding the first non-blank character in a string. |
|
|
Returns a portion of a string. It counts all characters, including blanks, starting at the beginning of the string. |
|
|
Removes blanks or characters from the beginning of a string. |
|
|
Removes blanks or characters from the end of a string. |
|
|
Converts a string to a specified length by adding blanks or characters to the beginning of the string. |
|
|
Converts a string to a specified length by adding blanks or characters to the end of the string. |
|
|
Returns the position of a character set in a string, counting from left to right and starting from 1. Note that it returns |
For example, |
|
Returns the position of a byte set in a string, counting from left to right and starting from 1. Note that it returns |
|
|
Converts numeric values to text strings. |
|