whtSpListOffset
NItl4Rec structure
#include <Script.h>
typedef struct NItl4Rec { Size Offset Description
short flags; 2 0 reserved
long resourceType; 4 2 contains 'itl4'
short resourceNum; 2 6 resource ID
short version; 2 8 version number
short format; 2 10 format code
short resHeader; 2 12 reserved
long resHeader2; 4 14 reserved
short numTables; 2 18 number of tables, one-based
The following are offsets from the beginning of the resource to tables & code chunks.
long mapOffset; 4 20 offset to table that maps byte to
token
long strOffset; 4 24 offset to routine that copies
canonical string
long fetchOffset; 4 28 offset to routine that gets next byte
of character
long unTokenOffset; 4 32 offset to untoken table, maps token
to canonical string
long defPartsOffset; 4 36 offset to default number parts
table
long whtSpListOffset; 4 40 offset to white space code list
long resOffset7; 4 44 reserved
long resOffset8; 4 48 reserved
short resLength1; 2 52 reserved
short resLength2; 2 54 reserved
short resLength3; 2 56 reserved
short unTokenLength; 2 58 length of untoken table
short defPartsLength; 2 60 length of default number parts
table
short whtSpListLength; 2 62 length of white space code list
short resLength7; 2 64 reserved
short resLength8; 2 66 reserved
} NItl4Rec; 68
typedef NItl4Rec *NItl4Ptr;
typedef NItl4Rec **NItl4Handle;
A new section of the 'itl4' resource contains a table of white space characters
in the script. A formerly reserved field in the header specifies the offset to
this whiteSpaceList table, and a new field specifies its length. The format of
the table defined by whiteSpaceList is similar to the format of the untoken
table:
dc.w (length of whiteSpaceList in bytes)
dc.w (number of entries)
dc.w (offset from beginning of whiteSpaceList to first entry)
dc.w (offset from beginning of whiteSpaceList to second entry)
.
.
.
Each entry is a high-level language string specifying a single white space
character (which may be 1 or 2 bytes). (If you do not have access to the Rez
file SysTypes.r, which contains the Rez type definition for the 'itl4' resource,
consult Macintosh Developer Technical Support.)