Classification
OTL Syntax
ListTerm StringUtil.SplitString(StringTerm string, StringTerm delimiter);
Description
The SplitString term returns a list of strings. The returned list will contain each substring of the original string that is terminated by a given delimiter string or by the end of the string. The substrings in the resulting list will be in the order in which they occur in the original string. If the delimiter does not occur in any part of the original string, then the resulting list will have just one element, namely the original string. If the delimiter is the empty string, the original string will be split into single characters. The search for delimiters in the string will be case sensitive.
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] |
Represents the original string which will be split.
|
Delimiter |
String |
Term |
- |
[1] |
Represents the delimiter string. The original string is split at each place where a delimiter string occurs.
|
OTL Examples
/// Local Declarations
List<String> List_String;
/// Flow
List_String = StringUtil.SplitString("emotive company", " ");
See also
ReplaceSubString
MatchToRegularExpression
StringConcatenate
SubString
LengthOfString
IndexOf
ToUpper
ToLower
Encode
Decode