The XML schema string-manipulator-datatypes-1.2.xsd defines string manipulation functions that can be used in SIS expressions. Functions that return a Boolean value may also be used as expression conditions in their own right.
The following tables list the string manipulation functions available in the SIS, what they do, and the results they return.
string-prepend
Description |
Adds a string prefix to beginning of a string value. |
---|---|
Returns |
|
Example |
|
string-append
Description |
Adds a string suffix to the end of a string value. |
---|---|
Returns |
|
Example |
|
string-substring
Description |
Extracts a substring from a string value. The begin index specifies the index of the first character to be included. The end index is optional and specifies the index after the last character to be included. If the end index is not specified, it defaults to the length of the source string value. |
---|---|
Returns |
|
Example |
|
string-length
Description |
Returns the length of a string value. |
---|---|
Returns |
|
Example |
|
string-contains
Description |
Determines if a string value contains the given substring. |
---|---|
Returns |
|
Example |
|
string-index-of
Description |
Returns the index within a string value of the first occurrence of the given substring. The begin index is optional and specifies the index of the first character from where to start the search. If the begin index is not specified, it defaults to |
---|---|
Returns |
|
Example |
|
string-last-index-of
Description |
Returns the index within a string value of the last occurrence of the given substring. The begin index is optional and specifies the index of the first character from where to start the search. If the begin index is not specified, it defaults to |
---|---|
Returns |
|
Example |
|
string-starts-with
Description |
Determines if a string value begins with a given prefix. The begin index is optional and specifies the index of the first character from where to start comparing from. If the begin index is not specified, it defaults to |
---|---|
Returns |
|
Example |
|
string-ends-with
Description |
Determines if a string value ends with a given suffix. |
---|---|
Returns |
|
Example |
|
string-matches
Description |
Determines if a string value matches a given regular expression. |
---|---|
Returns |
|
Example |
|