X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..b25be06635768807f8f693286fa73bb2297bb06c:/icuSources/layout/SingleTableProcessor.cpp diff --git a/icuSources/layout/SingleTableProcessor.cpp b/icuSources/layout/SingleTableProcessor.cpp index 9af991e3..94a4edd7 100644 --- a/icuSources/layout/SingleTableProcessor.cpp +++ b/icuSources/layout/SingleTableProcessor.cpp @@ -1,7 +1,6 @@ /* - * @(#)SingleTableProcessor.cpp 1.6 00/03/15 * - * (C) Copyright IBM Corp. 1998-2003 - All Rights Reserved + * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved * */ @@ -11,11 +10,12 @@ #include "NonContextualGlyphSubst.h" #include "NonContextualGlyphSubstProc.h" #include "SingleTableProcessor.h" +#include "LEGlyphStorage.h" #include "LESwaps.h" U_NAMESPACE_BEGIN -const char SingleTableProcessor::fgClassID=0; +UOBJECT_DEFINE_RTTI_IMPLEMENTATION(SingleTableProcessor) SingleTableProcessor::SingleTableProcessor() { @@ -33,16 +33,17 @@ SingleTableProcessor::~SingleTableProcessor() { } -void SingleTableProcessor::process(LEGlyphID *glyphs, le_int32 * /*charIndices*/, le_int32 glyphCount) +void SingleTableProcessor::process(LEGlyphStorage &glyphStorage) { const LookupSingle *entries = singleTableLookupTable->entries; le_int32 glyph; + le_int32 glyphCount = glyphStorage.getGlyphCount(); for (glyph = 0; glyph < glyphCount; glyph += 1) { - const LookupSingle *lookupSingle = singleTableLookupTable->lookupSingle(entries, glyphs[glyph]); + const LookupSingle *lookupSingle = singleTableLookupTable->lookupSingle(entries, glyphStorage[glyph]); if (lookupSingle != NULL) { - glyphs[glyph] = SWAPW(lookupSingle->value); + glyphStorage[glyph] = SWAPW(lookupSingle->value); } } }