User guide
2.2. EXPRESSIONS 17
Escape Replacement
*n A newline (end-of-line) character.
*c A carriage return character.
*p A newpage (form-feed) character.
*s A space chara ct er .
*b A backspace character.
*t A tab charac te r.
*e An escape character.
*" "
*’ ’
** *
*xhh The single character with number hh (two hexadecima l
digits denot ing an integer in the range [0,255]).
*ddd The single character wi t h number ddd (three octal d ig it s
denoting an integer in the range [0, 2 55] ) .
*#g Set the encoding mode to GB2312 for the rest of this
string or character constant. The defa u l t encoding is
UTF8 unless speified by th e GB2312 compiler op t io n ,
See the specification of the bcpl command on page 106.
*#u Set the encoding mode t o UTF8 for the rest of this string
or character constant.
*#hhhh In UTF8 mode, this specifies a single Unicode character
with up to four hexadecimal digits. In string constants,
this is converted to a sequence of bytes giving its UTF-
8 representation. In character constants, i t yields the
integer hhhh. Thus ’*#C13F’=#xC13F.
*##h..h In UTF8 mode, this specifies a Unicode character with
up to eight hexadecimal digits, bu t is otherwise treated
as the *#hhhh escape.
*#dddd In GB2 312 mode, this specifies the GB2312 decimal code
(dddd) for an extended character. In string constants,
this i s converted to a sequence of bytes giving its GB2312
representation. In character constants, it yields the in-
teger dddd. Thus ’*#g*#4566’=4566.
*f..f * This sequence is ignored, where f..f stands for a se-
quence of white space characters. In this context, com-
ments introduced by ’//’ are treated as white spa ce,
but those introduced by ’/*’ are not.
A string constant consists of a sequence of zero or more characters enclosed
within quotes ("). Both string and character const ants use t he same character
escape mechanism described above. The value of a string is a pointer where the