1ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru/* 2ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * 3ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved 4ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * 5ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru */ 6ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 7ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#ifndef __OPENTYPEUTILITIES_H 8ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#define __OPENTYPEUTILITIES_H 9ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 10ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru/** 11ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * \file 12ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * \internal 13ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru */ 14ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 15ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#include "LETypes.h" 16ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#include "OpenTypeTables.h" 17ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 18ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste QueruU_NAMESPACE_BEGIN 19ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 20ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queruclass OpenTypeUtilities /* not : public UObject because all methods are static */ { 21ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Querupublic: 22ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru static le_int8 highBit(le_int32 value); 23ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru static Offset getTagOffset(LETag tag, const TagAndOffsetRecord *records, le_int32 recordCount); 24ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru static le_int32 getGlyphRangeIndex(TTGlyphID glyphID, const GlyphRangeRecord *records, le_int32 recordCount); 25ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru static le_int32 search(le_uint16 value, const le_uint16 array[], le_int32 count); 26ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru static le_int32 search(le_uint32 value, const le_uint32 array[], le_int32 count); 27ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru static void sort(le_uint16 *array, le_int32 count); 28ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 29ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queruprivate: 30ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru OpenTypeUtilities() {} // private - forbid instantiation 31ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru}; 32ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 33ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste QueruU_NAMESPACE_END 34ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#endif 35