HP 9000 User Manual page 61

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

5
Single-Character Element
The single character collating element may consist of a character within single
quotes
C),
or it may consist of a hexadecimal, octal or decimal value. For
example:
'7'
'7'; '7'
\x37 \x37;\x37
\d55 \d55;\d55
\067 \067;\067
character collating element
hexadecimal representation
decimal representation
octal representation
Multi-character Element
Multi-character collating elements are defined using the collating-element
keyword. This must be defined prior to the order _start keyword and takes
the form
collating-element
<symbol>
from" string"
this defines the symbol symbol for the multi-character string string, which will
collate as a single entity at the point where symbol appears in the collating
sequence.
The following is an example of
LC_COLLATE
code that defines a collating
sequence where the string
Cl
collates between the characters
C
and
D.
collat ing-element
<xx> from "C1"
'C'
'C'; 'C'
<xx>
<xx>;<xx>
'D'
'D'; 'D'
A one-to-two character code pair, which consists of single characters that
occupy two adjacent positions in the collating sequence, may also be defined.
In the following example, the sharp s is collated as
SS
and occurs between
S
and s in the collation sequence.
'S'
'S'; 'S'
\xde
'S' ;"SS"
'5'
'S';
'5'
5-12
Localizing International Software

Advertisement

Table of Contents
loading

Table of Contents