Difference between revisions of "Extensions.StringUtil.LengthOfString"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | /// Local Declarations | |
+ | Integer IntegerVariable; | ||
+ | /// Flow | ||
+ | IntegerVariable = StringUtil.LengthOfString(StringTerm); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 21: | Line 24: | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | /// Local Declarations | ||
+ | |||
Integer Integer1; | Integer Integer1; | ||
Revision as of 08:55, 25 October 2018
Contents
Classification
Name | LengthOfString |
Short Description | Number of characters in a string |
Class | Term |
Extension | OTX StringUtil extension |
Group | StringUtil related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
/// Local Declarations
Integer IntegerVariable;
/// Flow
IntegerVariable = StringUtil.LengthOfString(StringTerm);
Description
The LengthOfString term shall return the number of characters constituting a given string.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Integer | The number of characters in a string |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
String | String | Term | - | [1] | Represents the input string whose length shall be retrieved. |
OTL Examples
/// Local Declarations
Integer Integer1;
/// Flow
Integer1 = StringUtil.LengthOfString("emotive company");
See also
ReplaceSubString
MatchToRegularExpression
StringConcatenate
SubString
IndexOf
SplitString
ToUpper
ToLower
Encode
Decode