Lugaru's Epsilon Programmer's Editor 14.04
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 begins with a UTF-8 signature (a "byte order mark"),
then the compiler interprets UTF-8 sequences in character and string
constants. This method lets you include Unicode characters directly
instead of using escape sequences. Select the "UTF-8" encoding via
the set-encoding command to create such files. If a file does
not begin with a UTF-8 signature, the compiler interprets bytes
literally, for compatibility with older EEL code.
Previous
|
Up
|
Next
|
Character Constants |
Epsilon Extension Language |
Scope of Variables |
Epsilon Programmer's Editor 14.04 manual. Copyright (C) 1984, 2021 by Lugaru Software Ltd. All rights reserved.
|