Classification
Pseudo-Code Syntax
List<String> SplitString(String string, String delimiter);
Description
SplitString term returns a list of strings, which contains the substrings separated by the specified delimiter. The order of the list elements corresponds to the order of occurrence in the string. If the delimiter is not found, the list contains exactly one element. The delimiter is an empty string, the string is split into his characters.
Return Value
The Term returns the value, see table below.
|
|
In OTX, Terms are categorized according to its return data type!
|
Data Type |
Description
|
List |
The list of substrings separated by the delimiter.
|
Properties
Name |
Data Type |
Class |
Default |
Cardinality |
Description
|
String |
String |
Term |
- |
[1] |
The original string
|
Delimiter |
String |
Term |
- |
[1] |
The original string is split at any place where a delimiter string is occurence
|
Examples
List<String> result = SplitString("emotive", "");
//Returns result = {"e", "m", "o", "t", "i", "v", "e"}
See also
ReplaceSubString
MatchToRegularExpression
StringConcatenate
SubString
LengthOfString
IndexOf
ToUpper
ToLower
Encode
Decode