Difference between revisions of "Extensions.StringUtil.Decode"
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 | |
+ | String StringVariable = ""; | ||
+ | /// Flow | ||
+ | StringVariable = StringUtil.Decode(EncodingTerm, ByteFieldTerm); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 22: | Line 25: | ||
== 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 09:12, 25 October 2018
Contents
Classification
Name | Decode |
Short Description | Decodes a string |
Class | Term |
Extension | OTX StringUtil extension |
Group | StringUtil related terms |
Exceptions | UnsupportedEncodingException OutOfBoundsException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
/// Local Declarations
String StringVariable = "";
/// Flow
StringVariable = StringUtil.Decode(EncodingTerm, ByteFieldTerm);
Description
The Decode term shall construct a String by decoding a given ByteField using a specified encoding.
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 | Decoded string according to the given encoding. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Encoding | Encoding | Term | @Encoding:US-ASCII | [1] | This element represents the encoding to be used. The set of standard encodings which shall be supported by any runtime system is given by the Encoding enumeration |
ByteField | ByteField | Term | - | [1] | Represents the ByteField which shall be transformed to a String by using the given encoding. |
OTL Examples
/// Local Declarations
String String1;
/// Flow
String1 = StringUtil.Decode( @Encoding:US-ASCII, &46464646);
See also
ReplaceSubString
MatchToRegularExpression
StringConcatenate
SubString
LengthOfString
IndexOf
SplitString
ToUpper
ToLower
Encode