2000-11-28 20:56:52 +00:00
|
|
|
/*
|
|
|
|
* @(#)StateTables.h 1.5 00/03/15
|
|
|
|
*
|
2003-06-03 20:58:22 +00:00
|
|
|
* (C) Copyright IBM Corp. 1998-2003 - All Rights Reserved
|
2000-11-28 20:56:52 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __STATETABLES_H
|
|
|
|
#define __STATETABLES_H
|
|
|
|
|
2003-01-13 23:15:11 +00:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \internal
|
|
|
|
*/
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
#include "LETypes.h"
|
|
|
|
#include "LayoutTables.h"
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
struct StateTableHeader
|
|
|
|
{
|
|
|
|
le_int16 stateSize;
|
|
|
|
ByteOffset classTableOffset;
|
|
|
|
ByteOffset stateArrayOffset;
|
|
|
|
ByteOffset entryTableOffset;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ClassCodes
|
|
|
|
{
|
|
|
|
classCodeEOT = 0,
|
|
|
|
classCodeOOB = 1,
|
|
|
|
classCodeDEL = 2,
|
|
|
|
classCodeEOL = 3,
|
|
|
|
classCodeFirstFree = 4,
|
|
|
|
classCodeMAX = 0xFF
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef le_uint8 ClassCode;
|
|
|
|
|
|
|
|
struct ClassTable
|
|
|
|
{
|
2003-02-05 00:05:40 +00:00
|
|
|
TTGlyphID firstGlyph;
|
2000-11-28 20:56:52 +00:00
|
|
|
le_uint16 nGlyphs;
|
|
|
|
ClassCode classArray[ANY_NUMBER];
|
|
|
|
};
|
|
|
|
|
|
|
|
enum StateNumber
|
|
|
|
{
|
|
|
|
stateSOT = 0,
|
|
|
|
stateSOL = 1,
|
|
|
|
stateFirstFree = 2,
|
|
|
|
stateMAX = 0xFF
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef le_uint8 EntryTableIndex;
|
|
|
|
|
|
|
|
struct StateEntry
|
|
|
|
{
|
|
|
|
ByteOffset newStateOffset;
|
|
|
|
le_int16 flags;
|
|
|
|
};
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_END
|
2000-11-28 20:56:52 +00:00
|
|
|
#endif
|
|
|
|
|