OTX Reference  
OpenTestSystem.Otx.Extensions.StringUtil.Terms.Decode Class Reference

Decodes a string More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.StringUtil.Terms.Decode:
Inheritance graph

Public Attributes

ByteFieldTerm bytes
 Cardinality [1]
Represents the ByteField which shall be transformed to a String by using the given encoding. More...
 
EncodingTerm encoding
 Cardinality [1]
Encoding for the interpretation of the string. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Decodes a string

The Decode term decoded the specified ByteField according to the specified encoding and return the result as a string (String) .

Exceptions
Core.Exceptions.OutOfBoundsExceptionIt is thrown if the bytes in the ByteField are not valid in the given encoding.
Syntax
StringTerm = StringUtil.Decode(EncodingTerm encoding, ByteFieldTerm byteField);
EncodingTerm encoding
Cardinality [1] Encoding for the interpretation of the string.
Definition: StringUtil.cs:785
Examples
// Local Declarations
String String1;
// Flow
String1 = StringUtil.Decode(@Encoding:US-ASCII, &46464646);

Member Data Documentation

◆ bytes

ByteFieldTerm OpenTestSystem.Otx.Extensions.StringUtil.Terms.Decode.bytes

Cardinality [1]
Represents the ByteField which shall be transformed to a String by using the given encoding.

◆ encoding

EncodingTerm OpenTestSystem.Otx.Extensions.StringUtil.Terms.Decode.encoding

Cardinality [1]
Encoding for the interpretation of the string.