/external/icu/icu4c/source/test/perf/leperf/ |
D | FontObject.cpp | 31 numTables = SWAPW(tempDir.numTables); in FontObject() 32 searchRange = SWAPW(tempDir.searchRange) >> 4; in FontObject() 33 entrySelector = SWAPW(tempDir.entrySelector); in FontObject() 34 rangeShift = SWAPW(tempDir.rangeShift) >> 4; in FontObject() 115 le_uint16 nSubtables = SWAPW(cmapTable->numberSubtables); in findCMAP() 121 if (SWAPW(esh->platformID) == platformID && in findCMAP() 122 SWAPW(esh->platformSpecificID) == platformSpecificID) { in findCMAP() 136 SWAPW(encodingSubtable->format) != 4) { in initUnicodeCMAP() 143 cmSegCount = SWAPW(header->segCountX2) / 2; in initUnicodeCMAP() 144 cmSearchRange = SWAPW(header->searchRange); in initUnicodeCMAP() [all …]
|
D | PortableFontInstance.cpp | 102 …le_int32 dirSize = sizeof tempDir + ((SWAPW(tempDir.numTables) - ANY_NUMBER) * sizeof(DirectoryEnt… in PortableFontInstance() 125 numTables = SWAPW(fDirectory->numTables); in PortableFontInstance() 138 fUnitsPerEM = SWAPW(headTable->unitsPerEm); in PortableFontInstance() 166 fAscent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->ascent)); in PortableFontInstance() 167 fDescent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->descent)); in PortableFontInstance() 168 fLeading = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->lineGap)); in PortableFontInstance() 170 fNumLongHorMetrics = SWAPW(hheaTable->numOfLongHorMetrics); in PortableFontInstance() 294 realThis->fNameCount = SWAPW(realThis->fNAMETable->count); in getNameString() 295 realThis->fNameStringOffset = SWAPW(realThis->fNAMETable->stringOffset); in getNameString() 302 … if (SWAPW(nameRecord->platformID) == platformID && SWAPW(nameRecord->encodingID) == encodingID && in getNameString() [all …]
|
D | cmaps.cpp | 15 #define SWAPU16(code) ((LEUnicode16) SWAPW(code)) 57 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper() 68 le_uint16 platformID = SWAPW(esh->platformID); in createUnicodeMapper() 69 le_uint16 platformSpecificID = SWAPW(esh->platformSpecificID); in createUnicodeMapper() 93 le_uint16 platformID = SWAPW(esh->platformID); in createUnicodeMapper() 94 le_uint16 platformSpecificID = SWAPW(esh->platformSpecificID); in createUnicodeMapper() 129 le_uint16 tableFormat = SWAPW(subtable->format); in createUnicodeMapper() 147 printf("%s:%d: Unknown format %x.\n", __FILE__, __LINE__, (SWAPW(subtable->format))); in createUnicodeMapper() 154 le_uint16 segCount = SWAPW(header->segCountX2) / 2; in CMAPFormat4Mapper() 156 fEntrySelector = SWAPW(header->entrySelector); in CMAPFormat4Mapper() [all …]
|
/external/icu/icu4c/source/test/letest/ |
D | FontObject.cpp | 31 numTables = SWAPW(tempDir.numTables); in FontObject() 32 searchRange = SWAPW(tempDir.searchRange) >> 4; in FontObject() 33 entrySelector = SWAPW(tempDir.entrySelector); in FontObject() 34 rangeShift = SWAPW(tempDir.rangeShift) >> 4; in FontObject() 115 le_uint16 nSubtables = SWAPW(cmapTable->numberSubtables); in findCMAP() 121 if (SWAPW(esh->platformID) == platformID && in findCMAP() 122 SWAPW(esh->platformSpecificID) == platformSpecificID) { in findCMAP() 136 SWAPW(encodingSubtable->format) != 4) { in initUnicodeCMAP() 143 cmSegCount = SWAPW(header->segCountX2) / 2; in initUnicodeCMAP() 144 cmSearchRange = SWAPW(header->searchRange); in initUnicodeCMAP() [all …]
|
D | PortableFontInstance.cpp | 103 …le_int32 dirSize = sizeof tempDir + ((SWAPW(tempDir.numTables) - ANY_NUMBER) * sizeof(DirectoryEnt… in PortableFontInstance() 126 numTables = SWAPW(fDirectory->numTables); in PortableFontInstance() 139 fUnitsPerEM = SWAPW(headTable->unitsPerEm); in PortableFontInstance() 167 fAscent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->ascent)); in PortableFontInstance() 168 fDescent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->descent)); in PortableFontInstance() 169 fLeading = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->lineGap)); in PortableFontInstance() 171 fNumLongHorMetrics = SWAPW(hheaTable->numOfLongHorMetrics); in PortableFontInstance() 290 realThis->fNameCount = SWAPW(realThis->fNAMETable->count); in getNameString() 291 realThis->fNameStringOffset = SWAPW(realThis->fNAMETable->stringOffset); in getNameString() 298 … if (SWAPW(nameRecord->platformID) == platformID && SWAPW(nameRecord->encodingID) == encodingID && in getNameString() [all …]
|
D | cmaps.cpp | 15 #define SWAPU16(code) ((LEUnicode16) SWAPW(code)) 57 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper() 68 le_uint16 platformID = SWAPW(esh->platformID); in createUnicodeMapper() 69 le_uint16 platformSpecificID = SWAPW(esh->platformSpecificID); in createUnicodeMapper() 93 le_uint16 platformID = SWAPW(esh->platformID); in createUnicodeMapper() 94 le_uint16 platformSpecificID = SWAPW(esh->platformSpecificID); in createUnicodeMapper() 132 le_uint16 tableFormat = SWAPW(subtable->format); in createUnicodeMapper() 150 printf("%s:%d: Unknown format %x.\n", __FILE__, __LINE__, (SWAPW(subtable->format))); in createUnicodeMapper() 157 le_uint16 segCount = SWAPW(header->segCountX2) / 2; in CMAPFormat4Mapper() 159 fEntrySelector = SWAPW(header->entrySelector); in CMAPFormat4Mapper() [all …]
|
/external/icu/icu4c/source/layout/ |
D | ContextualSubstSubtables.cpp | 40 le_uint16 sequenceIndex = SWAPW(substLookupRecordArray[subst].sequenceIndex); in applySubstitutionLookups() 41 le_uint16 lookupListIndex = SWAPW(substLookupRecordArray[subst].lookupListIndex); in applySubstitutionLookups() 68 if (glyph != SWAPW(glyphArray[match])) { in matchGlyphIDs() 99 le_int32 matchClass = SWAPW(classArray[match]); in matchGlyphClasses() 130 Offset coverageTableOffset = SWAPW(coverageTableOffsetArray[glyph]); in matchGlyphCoverages() 158 switch(SWAPW(subtableFormat)) in process() 201 le_uint16 srSetCount = SWAPW(subRuleSetCount); in process() 204 Offset subRuleSetTableOffset = SWAPW(subRuleSetTableOffsetArray[coverageIndex]); in process() 208 le_uint16 subRuleCount = SWAPW(subRuleSetTable->subRuleCount); in process() 213 SWAPW(subRuleSetTable->subRuleTableOffsetArray[subRule]); in process() [all …]
|
D | PairPositioningSubtables.cpp | 21 switch(SWAPW(subtableFormat)) in process() 57 Offset pairSetTableOffset = SWAPW(pairSetTableOffsetArray[coverageIndex]); in process() 59 le_uint16 pairValueCount = SWAPW(pairSetTable->pairValueCount); in process() 60 le_int16 valueRecord1Size = ValueRecord::getSize(SWAPW(valueFormat1)); in process() 61 le_int16 valueRecord2Size = ValueRecord::getSize(SWAPW(valueFormat2)); in process() 75 …pairValueRecord->valueRecord1.adjustPosition(SWAPW(valueFormat1), (char *) this, tempIterator, fon… in process() 81 … valueRecord2->adjustPosition(SWAPW(valueFormat2), (char *) this, *glyphIterator, fontInstance); in process() 101 …finitionTable *classDef1 = (const ClassDefinitionTable *) ((char *) this + SWAPW(classDef1Offset)); in process() 102 …finitionTable *classDef2 = (const ClassDefinitionTable *) ((char *) this + SWAPW(classDef2Offset)); in process() 105 le_int16 valueRecord1Size = ValueRecord::getSize(SWAPW(valueFormat1)); in process() [all …]
|
D | LookupTables.cpp | 30 le_int16 unity = SWAPW(unitSize); in lookupSegment() 31 le_int16 probe = SWAPW(searchRange); in lookupSegment() 32 le_int16 extra = SWAPW(rangeShift); in lookupSegment() 39 if (SWAPW(trial->lastGlyph) <= ttGlyph) { in lookupSegment() 48 if (SWAPW(trial->lastGlyph) <= ttGlyph) { in lookupSegment() 53 if (SWAPW(entry->firstGlyph) <= ttGlyph) { in lookupSegment() 62 le_int16 unity = SWAPW(unitSize); in lookupSingle() 63 le_int16 probe = SWAPW(searchRange); in lookupSingle() 64 le_int16 extra = SWAPW(rangeShift); in lookupSingle() 69 if (SWAPW(trial->glyph) <= ttGlyph) { in lookupSingle() [all …]
|
D | AnchorTables.cpp | 18 switch(SWAPW(anchorFormat)) { in getAnchor() 54 le_int16 x = SWAPW(xCoordinate); in getAnchor() 55 le_int16 y = SWAPW(yCoordinate); in getAnchor() 67 if (! fontInstance->getGlyphPoint(glyphID, SWAPW(anchorPoint), point)) { in getAnchor() 68 le_int16 x = SWAPW(xCoordinate); in getAnchor() 69 le_int16 y = SWAPW(yCoordinate); in getAnchor() 80 le_int16 x = SWAPW(xCoordinate); in getAnchor() 81 le_int16 y = SWAPW(yCoordinate); in getAnchor() 83 Offset dtxOffset = SWAPW(xDeviceTableOffset); in getAnchor() 84 Offset dtyOffset = SWAPW(yDeviceTableOffset); in getAnchor()
|
D | ClassDefinitionTables.cpp | 20 switch(SWAPW(classFormat)) { in getGlyphClass() 46 switch(SWAPW(classFormat)) { in hasGlyphClass() 71 le_uint16 count = SWAPW(glyphCount); in getGlyphClass() 74 TTGlyphID firstGlyph = SWAPW(startGlyph); in getGlyphClass() 78 return SWAPW( classValueArrayRef(ttGlyphID - firstGlyph, success) ); in getGlyphClass() 87 le_uint16 count = SWAPW(glyphCount); in hasGlyphClass() 92 if (SWAPW(classValueArrayRef(i,success)) == glyphClass) { in hasGlyphClass() 104 le_uint16 rangeCount = SWAPW(classRangeCount); in getGlyphClass() 113 return SWAPW(classRangeRecordArrayRef(rangeIndex, success).rangeValue); in getGlyphClass() 119 le_uint16 rangeCount = SWAPW(classRangeCount); in hasGlyphClass() [all …]
|
D | CoverageTables.cpp | 17 switch(SWAPW(coverageFormat)) in getGlyphCoverage() 44 le_uint16 count = SWAPW(glyphCount); in getGlyphCoverage() 55 if (SWAPW(glyphArray[extra]) <= ttGlyphID) { in getGlyphCoverage() 62 if (SWAPW(glyphArray[index + probe]) <= ttGlyphID) { in getGlyphCoverage() 67 if (SWAPW(glyphArray[index]) == ttGlyphID) { in getGlyphCoverage() 77 le_uint16 count = SWAPW(rangeCount); in getGlyphCoverage() 85 TTGlyphID firstInRange = SWAPW(rangeRecordArray[rangeIndex].firstGlyph); in getGlyphCoverage() 86 le_uint16 startCoverageIndex = SWAPW(rangeRecordArray[rangeIndex].rangeValue); in getGlyphCoverage()
|
D | ContextualGlyphSubstProc2.cpp | 46 le_uint16 newState = SWAPW(entry->newStateIndex); in processStateEntry() 47 le_uint16 flags = SWAPW(entry->flags); in processStateEntry() 48 le_int16 markIndex = SWAPW(entry->markIndex); in processStateEntry() 49 le_int16 currIndex = SWAPW(entry->currIndex); in processStateEntry() 82 le_int16 format = SWAPW(lookupTable->format); in lookup() 92 newGlyph = SWAPW(lookupTable0->valueArray(glyphCode, success)); in lookup() 102 newGlyph = SWAPW(segment->value); in lookup() 118 newGlyph = SWAPW(segment->value); in lookup() 126 TTGlyphID firstGlyph = SWAPW(lookupTable8->firstGlyph); in lookup() 127 TTGlyphID glyphCount = SWAPW(lookupTable8->glyphCount); in lookup() [all …]
|
D | KernTable.cpp | 29 #define SWAP_KEY(p) (((le_uint32) SWAPW((p)->left) << 16) | SWAPW((p)->right)) 102 if (!header.isEmpty() && header->version == 0 && SWAPW(header->nTables) > 0) { in LE_CORRECT_SIZE() 106 coverage = SWAPW(subhead->coverage); in LE_CORRECT_SIZE() 113 nPairs = SWAPW(table->nPairs); in LE_CORRECT_SIZE() 116 searchRange = SWAPW(table->searchRange); in LE_CORRECT_SIZE() 117 entrySelector = SWAPW(table->entrySelector); in LE_CORRECT_SIZE() 118 rangeShift = SWAPW(table->rangeShift); in LE_CORRECT_SIZE() 139 …entries: range %d selector %d shift %d ]]\n", SWAPW(table->searchRange), SWAPW(table->entrySelecto… in LE_CORRECT_SIZE() 235 le_int16 value = SWAPW(tp->value);
|
D | Features.cpp | 21 if (featureIndex >= SWAPW(featureCount) || LE_FAILURE(success)) { in getFeatureTable() 29 return LEReferenceTo<FeatureTable>(base, success, SWAPW(featureTableOffset)); in getFeatureTable() 45 …tilities::getTagOffset(featureTag, (TagAndOffsetRecord *) featureRecordArray, SWAPW(featureCount)); 51 return (const FeatureTable *) ((char *) this + SWAPW(featureTableOffset)); 53 int count = SWAPW(featureCount); 57 … return (const FeatureTable *) ((char *) this + SWAPW(featureRecordArray[i].featureTableOffset));
|
D | ContextualGlyphSubstProc.cpp | 25 substitutionTableOffset = SWAPW(contextualGlyphSubstitutionHeader->substitutionTableOffset); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 48 ByteOffset newState = SWAPW(entry->newStateOffset); in processStateEntry() 49 le_int16 flags = SWAPW(entry->flags); in processStateEntry() 50 WordOffset markOffset = SWAPW(entry->markOffset); in processStateEntry() 51 WordOffset currOffset = SWAPW(entry->currOffset); in processStateEntry() 55 …TTGlyphID newGlyph = SWAPW(int16Table.getObject(markOffset + LE_GET_GLYPH(mGlyph), success)); // w… in processStateEntry() 62 …TTGlyphID newGlyph = SWAPW(int16Table.getObject(currOffset + LE_GET_GLYPH(thisGlyph), success)); /… in processStateEntry()
|
D | LookupProcessor.cpp | 29 le_uint16 lookupType = SWAPW(lookupTable->lookupType); in applyLookupTable() 30 le_uint16 subtableCount = SWAPW(lookupTable->subTableCount); in applyLookupTable() 76 le_uint16 lookupFlags = SWAPW(lookupTable->lookupFlags); in process() 106 le_uint16 lookupFlags = SWAPW(lookupTable->lookupFlags); in applySingleLookup() 115 le_uint16 lookupCount = featureTable.isValid()? SWAPW(featureTable->lookupCount) : 0; in selectLookups() 121 le_uint16 lookupListIndex = SWAPW(lookupListIndexArray.getObject(lookup,success)); in selectLookups() 155 featureCount = SWAPW(langSysTable->featureCount); in LookupProcessor() 166 lookupListCount = SWAPW(lookupListTable->lookupCount); in LookupProcessor() 176 requiredFeatureIndex = SWAPW(langSysTable->reqFeatureIndex); in LookupProcessor() 206 le_uint16 featureIndex = SWAPW(featureIndexArray.getObject(feature, success)); in LookupProcessor() [all …]
|
D | StateTableProcessor2.cpp | 45 format = SWAPW(classTable->format); in StateTableProcessor2() 95 classCode = SWAPW(lookupTable0->valueArray[gid]); in process() 98 …EntryTableIndex2 entryTableIndex = SWAPW(stateArray(classCode + currentState * nClasses, success)); in process() 129 classCode = SWAPW(segment->value); in process() 133 … EntryTableIndex2 entryTableIndex = SWAPW(stateArray(classCode + currentState * nClasses,success)); in process() 169 classCode = SWAPW(segment->value); in process() 173 …EntryTableIndex2 entryTableIndex = SWAPW(stateArray(classCode + currentState * nClasses, success)); in process() 183 TTGlyphID firstGlyph = SWAPW(lookupTable8->firstGlyph); in process() 184 TTGlyphID lastGlyph = firstGlyph + SWAPW(lookupTable8->glyphCount); in process() 201 classCode = SWAPW(lookupTable8->valueArray[glyphCode - firstGlyph]); in process() [all …]
|
D | LigatureSubstSubtables.cpp | 22 Offset ligSetTableOffset = SWAPW(ligSetTableOffsetArray[coverageIndex]); in process() 24 le_uint16 ligCount = SWAPW(ligSetTable->ligatureCount); in process() 27 Offset ligTableOffset = SWAPW(ligSetTable->ligatureTableOffsetArray[lig]); in process() 29 le_uint16 compCount = SWAPW(ligTable->compCount) - 1; in process() 34 TTGlyphID ligGlyph = SWAPW(ligTable->ligGlyph); in process() 42 … if (LE_GET_GLYPH(glyphIterator->getCurrGlyphID()) != SWAPW(ligTable->componentArray[comp])) { in process()
|
D | MarkToLigaturePosnSubtables.cpp | 39 const MarkArray *markArray = (const MarkArray *) ((char *) this + SWAPW(markArrayOffset)); in process() 41 le_uint16 mcCount = SWAPW(classCount); in process() 53 …const LigatureArray *ligatureArray = (const LigatureArray *) ((char *) this + SWAPW(baseArrayOffse… in process() 54 le_uint16 ligatureCount = SWAPW(ligatureArray->ligatureCount); in process() 64 …Offset ligatureAttachOffset = SWAPW(ligatureArray->ligatureAttachTableOffsetArray[ligatureCoverage… in process() 66 le_int32 componentCount = SWAPW(ligatureAttachTable->componentCount); in process() 75 Offset anchorTableOffset = SWAPW(componentRecord->ligatureAnchorTableOffsetArray[markClass]); in process()
|
D | MultipleSubstSubtables.cpp | 37 le_uint16 seqCount = SWAPW(sequenceCount); in process() 45 Offset sequenceTableOffset = SWAPW(sequenceTableOffsetArray[coverageIndex]); in process() 47 le_uint16 glyphCount = SWAPW(sequenceTable->glyphCount); in process() 53 TTGlyphID substitute = SWAPW(sequenceTable->substituteArray[0]); in process() 66 TTGlyphID substitute = SWAPW(sequenceTable->substituteArray[i]); in process() 87 TTGlyphID substitute = SWAPW(sequenceTable->substituteArray[i]); in process()
|
D | StateTableProcessor.cpp | 27 stateSize = SWAPW(stateTableHeader->stHeader.stateSize); in StateTableProcessor() 28 classTableOffset = SWAPW(stateTableHeader->stHeader.classTableOffset); in StateTableProcessor() 29 stateArrayOffset = SWAPW(stateTableHeader->stHeader.stateArrayOffset); in StateTableProcessor() 30 entryTableOffset = SWAPW(stateTableHeader->stHeader.entryTableOffset); in StateTableProcessor() 34 firstGlyph = SWAPW(classTable->firstGlyph); in StateTableProcessor() 35 lastGlyph = firstGlyph + SWAPW(classTable->nGlyphs); in StateTableProcessor()
|
D | LigatureSubstProc.cpp | 29 ligatureActionTableOffset = SWAPW(ligatureSubstitutionHeader->ligatureActionTableOffset); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 30 componentTableOffset = SWAPW(ligatureSubstitutionHeader->componentTableOffset); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 31 ligatureTableOffset = SWAPW(ligatureSubstitutionHeader->ligatureTableOffset); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 50 ByteOffset newState = SWAPW(entry->newStateOffset); in processStateEntry() 51 le_int16 flags = SWAPW(entry->flags); in processStateEntry() 98 … i += SWAPW(offsetTable.getObject(LE_GET_GLYPH(glyphStorage[componentGlyph]), success)); in processStateEntry() 102 TTGlyphID ligatureGlyph = SWAPW(*ligatureOffset.getAlias()); in processStateEntry()
|
D | Lookups.cpp | 17 …okupTableOffsetArrayRef(base, success, (const Offset*)&lookupTableOffsetArray, SWAPW(lookupCount)); in getLookupTable() 22 …return LEReferenceTo<LookupTable>(base, success, SWAPW(lookupTableOffsetArrayRef.getObject(lookupT… in getLookupTable() 28 …> subTableOffsetArrayRef(base, success, (const Offset*)&subTableOffsetArray, SWAPW(subTableCount)); in getLookupSubtable() 33 …return LEReferenceTo<LookupSubtable>(base, success, SWAPW(subTableOffsetArrayRef.getObject(subtabl… in getLookupSubtable() 39 const LEReferenceTo<CoverageTable> coverageTable(base, success, SWAPW(tableOffset)); in getGlyphCoverage()
|
/external/icu/icu4c/source/samples/layout/ |
D | cmaps.cpp | 20 #define SWAPU16(code) ((LEUnicode16) SWAPW(code)) 62 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper() 69 if (SWAPW(esh->platformID) == 3) { in createUnicodeMapper() 70 switch (SWAPW(esh->platformSpecificID)) { in createUnicodeMapper() 92 switch (SWAPW(subtable->format)) { in createUnicodeMapper() 113 le_uint16 segCount = SWAPW(header->segCountX2) / 2; in CMAPFormat4Mapper() 115 fEntrySelector = SWAPW(header->entrySelector); in CMAPFormat4Mapper() 116 fRangeShift = SWAPW(header->rangeShift) / 2; in CMAPFormat4Mapper() 151 le_uint16 rangeOffset = SWAPW(fIdRangeOffset[index]); in unicodeToGlyph() 154 result = SWAPW(glyphIndexTable[offset]); in unicodeToGlyph() [all …]
|