OTX Reference  
OpenTestSystem.Otx.Extensions.StringUtil.Terms.SplitString Class Reference

Generates list of substrings More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.StringUtil.Terms.SplitString:
Inheritance graph

Public Attributes

StringTerm _string
 Represents the original string which shall be split. More...
 
StringTerm delimiter
 Represents the delimiter string. The original string is split at each place where a delimiter string occurs. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Store additional More...
 

Detailed Description

Generates list of substrings

The SplitString term returns a list of Strings, that contains the substrings, which are separated by the specified Delimiter. The order of the list elements corresponds to the order of the occurrence in the String. If the Delimiter is not found, the list contains exactly one element. If the Delimiter is an empty string, the string is split into its characters.

Syntax
ListTerm = StringUtil.SplitString(StringTerm string, StringTerm delimiter);
StringTerm delimiter
Represents the delimiter string. The original string is split at each place where a delimiter string ...
Definition: StringUtil.cs:388
Examples
// Local Declarations
List<String> List_String;
// Flow
List_String = StringUtil.SplitString("emotive company", " ");

Member Data Documentation

◆ _string

StringTerm OpenTestSystem.Otx.Extensions.StringUtil.Terms.SplitString._string

Represents the original string which shall be split.

◆ delimiter

StringTerm OpenTestSystem.Otx.Extensions.StringUtil.Terms.SplitString.delimiter

Represents the delimiter string. The original string is split at each place where a delimiter string occurs.