Lugaru's Epsilon Programmer's Editor
Context:
|
Previous
|
Up
|
Next
|
Character Constants |
Epsilon Extension Language |
Scope of Variables |
Epsilon User's Manual and Reference >
Epsilon Extension Language >
Lexical Rules >
String Constants
Text enclosed in double quote characters (such as "example" ) is
a string constant. It produces a block of storage whose type is
array of char, and whose value is the sequence of characters
between the double quotes, with a null character (ASCII code 0)
automatically added at the end. All the escape sequences for
character constants work here too.
The compiler merges a series of adjacent string constants into a
single string constant (before automatically adding a null character
at the end). For example, "sample" "text" produces the
same single block of storage as "sampletext" .
If an EEL file that begins with a UTF-8 signature ("byte order
mark"), then the compiler decodes UTF-8 sequences in character and
string constants. This method lets you include Unicode characters
directly instead of using escape sequences. If a file does not begin
with a UTF-8 signature, the compiler interprets bytes literally.
Previous
|
Up
|
Next
|
Character Constants |
Epsilon Extension Language |
Scope of Variables |
Copyright (C) 1984, 2020 by Lugaru Software Ltd. All rights reserved.
|