Difference between revisions of "Core.Terms.StringLiteral"

From emotive
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:OTX '''StringLiteral'''}}[[Category:Core]]
 
{{DISPLAYTITLE:OTX '''StringLiteral'''}}[[Category:Core]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | StringLiteral | Literal of type String | [[Term]] | [[OtxReference#Core|OTX Core library]] | [[Literal related terms]] | - | - }}
+
{{ClassificationActivity | StringLiteral | Literal of type String | [[Term]] | [[Core|OTX Core library]] | [[Literal related terms]] | - | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
Line 21: Line 21:
 
String str1 = "Text";
 
String str1 = "Text";
 
String str2 = "Text with CrLf \n";
 
String str2 = "Text with CrLf \n";
 +
String str3 = "Support escape sequences  \a , \b, \f, \n, \r, \t, \v \x \\ \" in the OTF";
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 04:20, 7 May 2019

Classification

Name StringLiteral
Short Description Literal of type String
Class Term
Extension OTX Core library
Group Literal related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

Value = literal

Description

A StringLiteral is the code representation of a value of type String.

Properties

Name Data Type Class Default Cardinality Description
Literal String Literal - [1] Identification of a string in C # notation.

OTL Examples

String str1 = "Text";
String str2 = "Text with CrLf \n";
String str3 = "Support escape sequences  \a , \b, \f, \n, \r, \t, \v \x \\ \" in the OTF";

See also

BooleanLiteral
IntegerLiteral
FloatLiteral
ByteFieldLiteral
ListLiteral
MapLiteral
UserExceptionLiteral