OTX Reference  
OpenTestSystem.Otx.Core.DataTypes.String Class Reference

Arbitrary number of characters. More...

Inheritance diagram for OpenTestSystem.Otx.Core.DataTypes.String:
Inheritance graph

Public Attributes

StringLiteral init
 Initialisation of a String declaration with a literal More...
 

Detailed Description

Arbitrary number of characters.

A String stores an arbitrary number of characters. Every character in an OTX String shall have a corresponding UCS/Unicode code point, which is an integer. See UCS ISO/IEC 10646:2011. OTX adheres to the W3C definition of the xsd:string data type.

Note
If an String declaration is not explicitly initialized, an empty string "" is assigned to the declaration.
Terms and Actions
List of some useful terms and actions:.
Conversion Terms
ConversionResultSample
ToBooleanReturns true if string value is "true", otherwise false
Boolean b = ToBoolean("123"); // Returns false
ToIntegerReturns the integer value of the string
Integer i = ToInteger("123"); // Returns 123
ToFloatReturns the float value of the string
Float f = ToFloat("123"); // Returns 123.0
ToStringReturns the copy of the value
String s = ToString("123"); // Returns "123"
ToByteFieldReturns the UTF-8 encoded value
ByteField bf = ToByteField("123"); // Returns 313233
Syntax Declaration
String Declaration [= StringLiteral];
Literal
"Hello World"
"Line\nbreak"
Sample
String StringVariable = "Hello World";

Member Data Documentation

◆ init

StringLiteral OpenTestSystem.Otx.Core.DataTypes.String.init

Initialisation of a String declaration with a literal