Difference between revisions of "Extensions.StringUtil.SubString"
Jump to navigation
Jump to search
m (Hb moved page SubString to Extensions.StringUtil.SubString: #3153) |
|||
Line 1: | Line 1: | ||
− | [[Category:StringUtil]] | + | {{DISPLAYTITLE:'''SubString '''}}[[Category:StringUtil]] |
== Classification == | == Classification == | ||
− | {{ClassificationActivity | SubString | Locate a substring | [[Term]] | [[StringUtil|OTX StringUtil extension]] | [[StringUtil related terms]] | [[OutOfBoundsException]] | - }} | + | {{ClassificationActivity | SubString | Locate a substring | [[Term]] | [[Extensions.StringUtil|OTX StringUtil extension]] | [[StringUtil related terms]] | [[OutOfBoundsException]] | - }} |
== OTL Syntax == | == OTL Syntax == | ||
Line 11: | Line 11: | ||
The '''SubString''' term returns a substring of a string . The substring is determined by the index and count element. | The '''SubString''' term returns a substring of a string . The substring is determined by the index and count element. | ||
− | {{TermReturnValue| [[String]] | The substring of a string}} | + | {{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | The substring of a string}} |
== Properties == | == Properties == | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| String | [[String]] | [[Term]] | - | [1] | The original string}} | + | {{TableRowPropertie1| String | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | The original string}} |
− | {{TableRowPropertie2| Index | [[Integer]] | [[Term]] | - | [1] | The zero-based position at which the substring begins}} | + | {{TableRowPropertie2| Index | [[Core.DataTypes.SimpleDataType.Integer|Integer]] | [[Term]] | - | [1] | The zero-based position at which the substring begins}} |
− | {{TableRowPropertie1| Count | [[Integer]] | [[Term]] | - | [1] | The number of characters that will be read from the original string.}} | + | {{TableRowPropertie1| Count | [[Core.DataTypes.SimpleDataType.Integer|Integer]] | [[Term]] | - | [1] | The number of characters that will be read from the original string.}} |
|} | |} | ||
Line 29: | Line 29: | ||
== See also == | == See also == | ||
− | [[ReplaceSubString]] <br/> | + | [[Extensions.StringUtil.ReplaceSubString|ReplaceSubString]] <br/> |
− | [[MatchToRegularExpression]] <br/> | + | [[Extensions.StringUtil.MatchToRegularExpression|MatchToRegularExpression]] <br/> |
− | [[StringConcatenate]] <br/> | + | [[Extensions.StringUtil.StringConcatenate|StringConcatenate]] <br/> |
− | [[LengthOfString]] <br/> | + | [[Extensions.StringUtil.LengthOfString|LengthOfString]] <br/> |
− | [[IndexOf]] <br/> | + | [[Extensions.StringUtil.IndexOf|IndexOf]] <br/> |
− | [[SplitString]] <br/> | + | [[Extensions.StringUtil.SplitString|SplitString]] <br/> |
− | [[ToUpper]] <br/> | + | [[Extensions.StringUtil.ToUpper|ToUpper]] <br/> |
− | [[ToLower]] <br/> | + | [[Extensions.StringUtil.ToLower|ToLower]] <br/> |
− | [[Encode]] <br/> | + | [[Extensions.StringUtil.Encode|Encode]] <br/> |
− | [[Decode]] | + | [[Extensions.StringUtil.Decode|Decode]] |
Revision as of 03:39, 16 February 2016
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 |
OTL Syntax
StringTerm = SubString(StringTerm, IntegerTerm, IntegerTerm);
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. |
OTL Examples
String String1;
String1 = SubString("emotive company", 8, 7);
See also
ReplaceSubString
MatchToRegularExpression
StringConcatenate
LengthOfString
IndexOf
SplitString
ToUpper
ToLower
Encode
Decode