Case table
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
The following figure shows the format of the case table.
|
The CASE keyword signals the start of the table
entry. The CASE keyword takes the optional argument NONASCII,
used for an EBCDIC code page or for any other code page that does
not use standard case rules for the ASCII characters—that is, the
characters with numeric values in the range 0-127. The CODEPAGE-NAME keyword
precedes the name of the code page the case table applies to. The CASETABLE-NAME keyword
precedes the name of the case table. This name cannot exceed 19
characters and can include the characters A-Z and a-z, the numerals
0-9, and the dash (-).
In the UPPERCASE-MAP section, each number represents
the value of the corresponding character's uppercase equivalent
in the case table's code page. Similarly, in the LOWERCASE-MAP section,
each number represents the value of the corresponding character's lowercase
equivalent in the case table's code page.
To build a case table for a single-byte code page, provide 256 values in 16 rows of 16 cells. Be sure to format the rows of data exactly as shown in the figure.
The ENDTABLE keyword signals the end of the
character attribute table. The ENDCASE keyword
signals the end of the table entry.