Locking-Shift Characters
A locking-shift character is a user-transparent character in an array or string, indicating that the remaining characters in the key or record are from a right graphic character set other than the default character set. A locking-shift introducer (LSI) is coded, followed by a locking-shift selector (LSS) that is unique for each of the supported character sets. For example, the sequence 90 A0 hex yields the locking-shift character ( Using a locking-shift character in an NLS string is analogous to pressing the shift key on a typewriter to change all subsequent keystrokes until another locking-shift character or the end of a record is reached. As with single shifts, the VOS compilers provide built-in functions that encode and decode locking-shift characters. For examples of single- and locking-shift characters, see "NLS Strings" in Chapter 4. For information about built-in functions, see "Manipulating Programming Strings" in Chapter 4. Table 2-1 shows the supplementary graphic character sets in the VOS internal character coding system. The standards that define the character sets appear earlier in this chapter. Note that Chinese is defined as one standard but occupies two character sets. The structure of the Chinese character set consists of two double-byte character sets. |
|