Difference between revisions of "Extensions.StringUtil.LengthOfString"

From emotive
Jump to navigation Jump to search
(Created page with "Category:StringUtil == Classification == {{ClassificationActivity | LengthOfString | Number of characters in a string | Term | OTX StringUtil extension...")
 
Line 3: Line 3:
 
{{ClassificationActivity | LengthOfString | Number of characters in a string | [[Term]] | [[StringUtil|OTX StringUtil extension]] | [[StringUtil related terms]] | - | - }}
 
{{ClassificationActivity | LengthOfString | Number of characters in a string | [[Term]] | [[StringUtil|OTX StringUtil extension]] | [[StringUtil related terms]] | - | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Integer LengthOfString(String string);
+
IntegerTerm = LengthOfString(StringTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 19: Line 19:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Integer result = LengthOfString("emotive");
+
Integer Integer1;
//Returns result = 7
+
 
 +
Integer1 = LengthOfString("emotive company");
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 10:39, 10 February 2015

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

IntegerTerm = LengthOfString(StringTerm);

Description

The LengthOfString term returns the number of characters in a string.

Return Value

The Term returns the value, see table below.

Icons Note.png 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] The original string

OTL Examples

Integer Integer1;

Integer1 = LengthOfString("emotive company");

See also

ReplaceSubString
MatchToRegularExpression
StringConcatenate
SubString
IndexOf
SplitString
ToUpper
ToLower
Encode
Decode