Difference between revisions of "Extensions.StringUtil.StringConcatenate"

From emotive
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;">
StringTerm = StringUtil.StringConcatenate({StringTerm1, StringTerm2, ...});
+
/// Local Declarations
 +
String StringVariable = "";
 +
/// Flow
 +
StringVariable = StringUtil.StringConcatenate({StringTerm1, StringTerm2, ...});
 
</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
 +
 
String String1;
 
String String1;
  

Revision as of 08:47, 25 October 2018

Classification

Name StringConcatenate
Short Description Concatenation of strings
Class Term
Extension OTX StringUtil extension
Group StringUtil related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

/// Local Declarations
String StringVariable = "";
/// Flow
StringVariable = StringUtil.StringConcatenate({StringTerm1, StringTerm2, ...});

Description

The StringConcatenate term shall yield a new string which is the concatenation of two or more strings.

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
String Concatenation of two or more strings

Properties

Name Data Type Class Default Cardinality Description
String String Term - [2..*] The elements represent the strings that shall be concatenated.

OTL Examples

/// Local Declarations

String String1;

/// Flow

String1 = StringUtil.StringConcatenate({"emotive", "company"});

See also

ReplaceSubString
MatchToRegularExpression
SubString
LengthOfString
IndexOf
SplitString
ToUpper
ToLower
Encode
Decode