Extensions.StringUtil.SubString
Revision as of 04:11, 8 August 2014 by Nb (talk | contribs) (Created page with "Category:StringUtil == Classification == {{ClassificationActivity | SubString | Locate a substring | Term | OTX StringUtil extension | StringUtil rela...")
Contents
Classification
Name | SubString |
Short Description | Locate a substring |
Class | Term |
Extension | OTX StringUtil extension |
Group | StringUtil related terms |
Exceptions | OutOfBoundsException |
Checker Rules | - |
Standard Compliant | Yes |
Pseudo-Code Syntax
String SubString(String string, Integer index, Integer count);
Description
The SubString term returns a substring of a string . The substring is determined by the index and count element.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
String | The substring of a string |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
String | String | Term | - | [1] | The original string |
Index | Integer | Term | - | [1] | The zero-based position at which the substring begins |
Count | Integer | Term | - | [1] | The number of characters that will be read from the original string. |
Examples
String result = SubString("emotive", 0, 3);
//Returns result = "emo"
See also
ReplaceSubString
MatchToRegularExpression
StringConcatenate
LengthOfString
IndexOf
SplitString
ToUpper
ToLower
Encode
Decode