Literals

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
   Comments
   Numbers
   Literals
   Var and const
   Operators
   Statements and blocks
   Program flow
   Trace facility
   Exception handling
   Functions
   Predefined identifiers
Directives
System library
String library
Math library
Regular expression lib.
File library
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  

String literals may be enclosed in single or double quotes:

'sandra bullock'
"bruce willis"

Several consecutive literals are concatenated to a single string:

"john's" ' car'

evaluates to exactly the same as

"john's car"

Literals must end before the end of line, so use the concatenation feature for long literals having to be spread over several lines.

Encoding Nonprintable Chars

Nonprintable characters are noted with a backslash followed by an encoding character or number:

Written Description
\e escape (ESC)
\t horizontal tab (HT)
\r carriage return (CR)
\n newline/line feed (LF)
\f form feed (FF)
\\ backslash (\)
\' single quote (')
\" double quote (")
\ooo octal character code (o standing for octal digits 0...7)
\xhh hex character code (h standing for digits 0...9 and a..f)

  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>