HP 9000 User Manual page 63

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

5
The optional operands for each collation element are used to define the primary
or secondary weights for the collating element. Two or more elements can
be assigned the same primary weight. If this is done they are said to be in
the same equivalence class. Note that the following two collating-sequence
definitions are equivalent:
order_start
'A'
'B'
'C'
order_end
and
order_start
'A' 'A'
j
'1'
'B' 'B'
j
'8'
'C' 'C'
j
'C'
order_end
In the following example definition, the letters
A
and a both belong to the
equivalence class
A
and collate before the character B. Similarly, the characters
Band
b
belong to the same equivalence class. However, a and
b
collate after
A
and B respectively because their secondary weights are different.
order_start
'A' 'A'
j
'1'
'a' 'A'
j
'a'
'8' 'B'
j
'8'
'b' 'B'
j
'b'
order_end
If
the keyword
IGNORE
is used as the secondary weight, it causes the collating
element to be ignored during comparisons, as if the string did not contain the
collating element.
Note
An example of an
LC_COLLATE
sequence is in Appendix F.
5-14
Localizing International Software

Advertisement

Table of Contents
loading

Table of Contents