Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 6 - Script Manager / Script Manager Reference
Routines


Analyzing Characters

This section describes the functions CharacterByteType, CharacterType, and FillParseTable, which give you information about a character or group of characters, specified by character code:

The script system associated with the character you wish to examine must be enabled in order for any of these three routines to provide useful information. For example, if only the Roman script system is available and you attempt to identify a byte in a run of 2-byte characters, the CharacterByteType function returns 0, indicating that the byte is a 1-byte character.

1-byte script systems
For 1-byte script systems, the character-type tables reside in the string-manipulation ('itl2') resource and reflect region-specific or language-specific differences in uppercase conventions. The CharacterType function gets the tables from the string-manipulation resource using the GetIntlResource function.
2-byte script systems
For 2-byte script systems, the character-type tables reside in the encoding/rendering ('itl5') resource, not the string-manipulation resource. Whenever you call CharacterByteType, CharacterType, or FillParseTable, the necessary character-set encoding information is taken from the encoding/rendering resource. You cannot use the GetIntlResource function to access 2-byte character-type
tables directly.

Subtopics
CharacterByteType
CharacterType
FillParseTable

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996