Difference between revisions of "Core.DataTypes.SimpleDataType.String"

From emotive
Jump to navigation Jump to search
Line 5: Line 5:
 
== Description ==
 
== Description ==
 
The '''String''' data type identifies OTX in a sequence of zero or more characters.
 
The '''String''' data type identifies OTX in a sequence of zero or more characters.
 +
 +
{{ConversionTable |
 +
Boolean=Returns true if the string value is "true", otherwise false. | IntegerSample=<tt>Boolean b = ToBoolean("123"); // Returns false</tt> |
 +
Integer=Returns the integer value of the string. | IntegerSample=<tt>Integer i = ToInteger("123"); // Returns 123</tt> |
 +
Float=Returns the float value of the string. | IntegerSample=<tt>Float f = ToFloat("123"); // Returns 123.0</tt> |
 +
String=Returns the name of the enumeration value | StringSample=<tt>String s = ToString("123"); // Returns "123"</tt>|
 +
ByteField=Returns  the UTF-8 encoded value. | StringSample=<tt>String s = ToString("123"); // Returns 313233</tt>
 +
}

Revision as of 07:03, 22 October 2018

Classification

Name String
Short Description String value
Class Simple Data Type
Base Data Type SimpleType
Default Value ""
Provide a Literal Yes
SpecifiedBy ISO 13209-2
Standard Compliant Yes

Description

The String data type identifies OTX in a sequence of zero or more characters.

{{ConversionTable | Boolean=Returns true if the string value is "true", otherwise false. | IntegerSample=Boolean b = ToBoolean("123"); // Returns false | Integer=Returns the integer value of the string. | IntegerSample=Integer i = ToInteger("123"); // Returns 123 | Float=Returns the float value of the string. | IntegerSample=Float f = ToFloat("123"); // Returns 123.0 | String=Returns the name of the enumeration value | StringSample=String s = ToString("123"); // Returns "123"| ByteField=Returns the UTF-8 encoded value. | StringSample=String s = ToString("123"); // Returns 313233 }