Important: The information in this document is obsolete and should not be used for new development.
The Offset Table Record
TheFindWordBreaks
procedure uses the offset table, which is defined by theOffsetTable
data type. You pass a record of this type byVAR
toFindWordBreaks
, and it fills in the fields to specify the location of the next word in the input string. TheFindWordBreaks
procedure is described in the section "FindWordBreaks," which begins on page 5-77.
OffsetTable = ARRAY [0..2] of OffPair; OffPair = RECORD offFirst: Integer; {offset of first word boundary} offSecond: Integer; {offset of second word boundary} END;Although the offset table contains three
Field Description
offFirst
- The offset in bytes from the beginning of the string to the first character of the word.
offSecond
- The offset in bytes from the beginning of the string to the last character of the word.
OffPair
records, theFindWordBreaks
procedure fills in only the first of these records with the offset values for the word that it finds. The other two entries are for use by theHiliteText
procedure, which is described in the chapter "QuickDraw Text" in this book.