X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..b25be06635768807f8f693286fa73bb2297bb06c:/icuSources/layout/ClassDefinitionTables.cpp diff --git a/icuSources/layout/ClassDefinitionTables.cpp b/icuSources/layout/ClassDefinitionTables.cpp index 83e4a52a..471a2b3e 100644 --- a/icuSources/layout/ClassDefinitionTables.cpp +++ b/icuSources/layout/ClassDefinitionTables.cpp @@ -1,7 +1,6 @@ /* - * @(#)ClassDefinitionTables.cpp 1.5 00/03/15 * - * (C) Copyright IBM Corp. 1998-2003 - All Rights Reserved + * (C) Copyright IBM Corp. 1998-2010 - All Rights Reserved * */ @@ -69,7 +68,7 @@ le_int32 ClassDefFormat1Table::getGlyphClass(LEGlyphID glyphID) const TTGlyphID firstGlyph = SWAPW(startGlyph); TTGlyphID lastGlyph = firstGlyph + SWAPW(glyphCount); - if (ttGlyphID > firstGlyph && ttGlyphID < lastGlyph) { + if (ttGlyphID >= firstGlyph && ttGlyphID < lastGlyph) { return SWAPW(classValueArray[ttGlyphID - firstGlyph]); } @@ -83,11 +82,11 @@ le_bool ClassDefFormat1Table::hasGlyphClass(le_int32 glyphClass) const for (i = 0; i < count; i += 1) { if (SWAPW(classValueArray[i]) == glyphClass) { - return true; + return TRUE; } } - return false; + return FALSE; } le_int32 ClassDefFormat2Table::getGlyphClass(LEGlyphID glyphID) const @@ -111,11 +110,11 @@ le_bool ClassDefFormat2Table::hasGlyphClass(le_int32 glyphClass) const for (i = 0; i < rangeCount; i += 1) { if (SWAPW(classRangeRecordArray[i].rangeValue) == glyphClass) { - return true; + return TRUE; } } - return false; + return FALSE; } U_NAMESPACE_END