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

Determines a substring More...

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

Public Attributes

StringTerm _string
 Cardinality [1]
Represents the input string from which a sub-string will be extracted. More...
 
NumericTerm count
 Cardinality [1]
Number of characters which should be read. It will read up to the end of the string. More...
 
NumericTerm index
 Cardinality [1]
Zero-based index - starting position within the string. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Determines a substring

The SubString term returns a substring from a String.The substring is determined by the Index und Count element.

Exceptions
Core.Exceptions.OutOfBoundsException
Syntax
StringTerm = StringUtil.SubString(StringTerm string, NumericTerm index, NumericTerm count);
NumericTerm index
Cardinality [1] Zero-based index - starting position within the string.
Definition: StringUtil.cs:1098
NumericTerm count
Cardinality [1] Number of characters which should be read. It will read up to the end of the string.
Definition: StringUtil.cs:1108
Examples
// Local Declarations
String String1;
// Flow
String1 = StringUtil.SubString("emotive company", 8, 7);

Member Data Documentation

◆ _string

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

Cardinality [1]
Represents the input string from which a sub-string will be extracted.

◆ count

NumericTerm OpenTestSystem.Otx.Extensions.StringUtil.Terms.SubString.count

Cardinality [1]
Number of characters which should be read. It will read up to the end of the string.

◆ index

NumericTerm OpenTestSystem.Otx.Extensions.StringUtil.Terms.SubString.index

Cardinality [1]
Zero-based index - starting position within the string.