PDL principles and procedures

 

Table 1-2. Types of string constants

 

 

 

 

Constant

Definition

Example

 

 

 

 

 

 

 

 

 

Hexadecimal

Normally used as string constants,

IDEN PREFIX=X'C1C2C3C4';

 

 

but they may also be used as

 

 

 

value constants. Each pair of

 

 

 

hexadecimal characters results in

 

 

 

one byte. A hexadecimal constant

 

 

 

must immediately be preceded by

 

 

 

the characters X apostrophe (X’),

 

 

 

then followed by another

 

 

 

apostrophe, to indicate to the PDL

 

 

 

compiler that the expression that

 

 

 

follows is in hexadecimal.

 

 

 

 

 

 

ASCII

Used as string constants. Each

IDEN PREFIX=A'ABC!44EF'

 

 

character results in one byte. The

is equivalent to

 

 

constants must be preceded by

IDEN PREFIX=X'414243444546'

 

 

the characters A apostrophe (A’)

 

 

and followed by an apostrophe

 

 

 

character.

 

 

 

The ASCII string type allows

 

 

 

hexadecimal representation of

 

 

 

characters to be embedded in a

 

 

 

string. This is done by preceding

 

 

 

the hexadecimal representation of

 

 

 

the character with an ! character.

 

 

 

The three character sequence

 

 

 

required for the hexadecimal

 

 

 

representation of a character

 

 

 

results in one byte.

 

 

 

Two successive ! characters (!!)

 

 

 

are necessary to represent one

 

 

 

actual ! character when printing.

 

 

 

The two character sequence (!!)

 

 

 

results in one byte.

 

 

 

 

 

 

Using LCDS Print Description Language

1-9

Page 35
Image 35
Xerox FreeFlow manual Iden PREFIX=XC1C2C3C4, Iden PREFIX=AABC!44EF, Iden PREFIX=X414243444546, Ascii