Difference between revisions of "Core.Terms.StringLiteral"

From emotive
Jump to navigation Jump to search
 
(3 intermediate revisions by one other user not shown)
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>
  
Line 30: Line 31:
 
[[Core.Terms.ListLiteral|ListLiteral]] <br/>
 
[[Core.Terms.ListLiteral|ListLiteral]] <br/>
 
[[Core.Terms.MapLiteral|MapLiteral]] <br/>
 
[[Core.Terms.MapLiteral|MapLiteral]] <br/>
[[Core.Terms.UserExceptionLiteral|Core.Terms.UserExceptionLiteral]]
+
[[Core.Terms.UserExceptionLiteral|UserExceptionLiteral]]

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