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 /
Appendix B - International Resources / Tokens Resource (Type 'itl4')


The NItl4Rec Data Type

The tokens resource is defined by the NItl4Rec data type as follows:

TYPE  NItl4Rec = 
   RECORD
      flags:            Integer;    {reserved}
      resourceType:     LongInt;    {contains 'itl4'}
      resourceNum:      Integer;    {resource ID}
      version:          Integer;    {version number}
      format:           Integer;    {format code}
      resHeader:        Integer;    {reserved}
      resHeader2:       LongInt;    {reserved}
      numTables:        Integer;    {number of tables} 

      mapOffset:        LongInt;    {offset to token table}
      strOffset:        LongInt;    {offset to string-copy rtn.}
      fetchOffset:      LongInt;    {offset to ext. fetch routine}
      unTokenOffset:    LongInt;    {offset to untoken table}
      defPartsOffset:   LongInt;    {offset to number parts table}
      whtSpListOffset:  LongInt;    {offset to whitespace table}

      resOffset7:       LongInt;    {reserved}
      resOffset8:       LongInt;    {reserved}
      resLength1:       Integer;    {reserved}
      resLength2:       Integer;    {reserved}
      resLength3:       Integer;    {reserved}
      unTokenLength:    Integer;    {length of untoken table}
      defPartsLength:   Integer;    {length of number parts table}
      whtSpListLength:  Integer;    {length of whitespace table}
      resLength7:       Integer;    {reserved}
      resLength8:       Integer;    {reserved}
   END;

TYPE NItl4Ptr     = ^NItl4Rec;
TYPE NItl4Handle  = ^NItl4Ptr;
Field Description
flags
(reserved)
resourceType
'itl4' (the resource type of the tokens resource).
resourceNum
The resource ID number of this tokens resource.
version
The version number of this tokens resource.
format
The format code, a number that identifies the format of this tokens resource.
resHeader
(reserved)
resHeader2
(reserved)
numTables
The number of tables in this tokens resource.
mapOffset
The offset in bytes from the beginning of the resource to the token table, an array that maps each byte to a token type.
strOffset
The offset in bytes from the beginning of the resource to the token-string copy routine, a code segment that creates strings that correspond to the text that generated each token.
fetchOffset
The offset in bytes from the beginning of the resource to the extension-fetching routine, a code segment that fetches the second byte of a 2-byte character for the IntlTokenize function.
unTokenOffset
The offset in bytes from the beginning of the resource to the untoken table, an array that maps token types back to the canonical strings that represent them.
defPartsOffset

The offset in bytes from the beginning of the resource to the number parts table, an array of characters that correspond to each part of a number format (used primarily by the FormatRecToString and StringToExtended functions).
whtSpListOffset
The offset in bytes from the beginning of the resource to the whitespace table, a list of all the characters that should be treated
as whitespace--for example, blank and tab for the Roman
script system.
resOffset7
(reserved)
resOffset8
(reserved)
resLength1
(reserved)
resLength2
(reserved)
resLength3
(reserved)
unTokenLength
The length in bytes of the untoken table.
defPartsLength
The length in bytes of the number parts table.
whtSpListLength
The length in bytes of the whitespace table.
resLength7
(reserved)
resLength8
(reserved)

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996