/external/chromium_org/third_party/icu/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 | 88 …le_int32 dirSize = sizeof tempDir + ((SWAPW(tempDir.numTables) - ANY_NUMBER) * sizeof(DirectoryEnt… in PortableFontInstance() 110 numTables = SWAPW(fDirectory->numTables); in PortableFontInstance() 122 fUnitsPerEM = SWAPW(headTable->unitsPerEm); in PortableFontInstance() 149 fAscent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->ascent)); in PortableFontInstance() 150 fDescent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->descent)); in PortableFontInstance() 151 fLeading = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->lineGap)); in PortableFontInstance() 153 fNumLongHorMetrics = SWAPW(hheaTable->numOfLongHorMetrics); in PortableFontInstance() 266 realThis->fNameCount = SWAPW(realThis->fNAMETable->count); in getNameString() 267 realThis->fNameStringOffset = SWAPW(realThis->fNAMETable->stringOffset); in getNameString() 274 … if (SWAPW(nameRecord->platformID) == platformID && SWAPW(nameRecord->encodingID) == encodingID && in getNameString() [all …]
|
D | cmaps.cpp | 14 #define SWAPU16(code) ((LEUnicode16) SWAPW(code)) 56 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper() 63 if (SWAPW(esh->platformID) == 3) { in createUnicodeMapper() 64 switch (SWAPW(esh->platformSpecificID)) { in createUnicodeMapper() 86 switch (SWAPW(subtable->format)) { in createUnicodeMapper() 107 le_uint16 segCount = SWAPW(header->segCountX2) / 2; in CMAPFormat4Mapper() 109 fEntrySelector = SWAPW(header->entrySelector); in CMAPFormat4Mapper() 110 fRangeShift = SWAPW(header->rangeShift) / 2; in CMAPFormat4Mapper() 145 le_uint16 rangeOffset = SWAPW(fIdRangeOffset[index]); in unicodeToGlyph() 148 result = SWAPW(glyphIndexTable[offset]); in unicodeToGlyph() [all …]
|
/external/icu4c/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 | 88 …le_int32 dirSize = sizeof tempDir + ((SWAPW(tempDir.numTables) - ANY_NUMBER) * sizeof(DirectoryEnt… in PortableFontInstance() 110 numTables = SWAPW(fDirectory->numTables); in PortableFontInstance() 122 fUnitsPerEM = SWAPW(headTable->unitsPerEm); in PortableFontInstance() 149 fAscent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->ascent)); in PortableFontInstance() 150 fDescent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->descent)); in PortableFontInstance() 151 fLeading = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->lineGap)); in PortableFontInstance() 153 fNumLongHorMetrics = SWAPW(hheaTable->numOfLongHorMetrics); in PortableFontInstance() 266 realThis->fNameCount = SWAPW(realThis->fNAMETable->count); in getNameString() 267 realThis->fNameStringOffset = SWAPW(realThis->fNAMETable->stringOffset); in getNameString() 274 … if (SWAPW(nameRecord->platformID) == platformID && SWAPW(nameRecord->encodingID) == encodingID && in getNameString() [all …]
|
D | cmaps.cpp | 14 #define SWAPU16(code) ((LEUnicode16) SWAPW(code)) 56 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper() 63 if (SWAPW(esh->platformID) == 3) { in createUnicodeMapper() 64 switch (SWAPW(esh->platformSpecificID)) { in createUnicodeMapper() 86 switch (SWAPW(subtable->format)) { in createUnicodeMapper() 107 le_uint16 segCount = SWAPW(header->segCountX2) / 2; in CMAPFormat4Mapper() 109 fEntrySelector = SWAPW(header->entrySelector); in CMAPFormat4Mapper() 110 fRangeShift = SWAPW(header->rangeShift) / 2; in CMAPFormat4Mapper() 145 le_uint16 rangeOffset = SWAPW(fIdRangeOffset[index]); in unicodeToGlyph() 148 result = SWAPW(glyphIndexTable[offset]); in unicodeToGlyph() [all …]
|
/external/icu4c/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() 157 switch(SWAPW(subtableFormat)) in process() 198 le_uint16 srSetCount = SWAPW(subRuleSetCount); in process() 201 Offset subRuleSetTableOffset = SWAPW(subRuleSetTableOffsetArray[coverageIndex]); in process() 204 le_uint16 subRuleCount = SWAPW(subRuleSetTable->subRuleCount); in process() 209 SWAPW(subRuleSetTable->subRuleTableOffsetArray[subRule]); in process() [all …]
|
D | LookupTables.cpp | 29 le_int16 unity = SWAPW(unitSize); in lookupSegment() 30 le_int16 probe = SWAPW(searchRange); in lookupSegment() 31 le_int16 extra = SWAPW(rangeShift); in lookupSegment() 36 if (SWAPW(trial->lastGlyph) <= ttGlyph) { in lookupSegment() 44 if (SWAPW(trial->lastGlyph) <= ttGlyph) { in lookupSegment() 49 if (SWAPW(entry->firstGlyph) <= ttGlyph) { in lookupSegment() 58 le_int16 unity = SWAPW(unitSize); in lookupSingle() 59 le_int16 probe = SWAPW(searchRange); in lookupSingle() 60 le_int16 extra = SWAPW(rangeShift); in lookupSingle() 65 if (SWAPW(trial->glyph) <= ttGlyph) { in lookupSingle() [all …]
|
D | PairPositioningSubtables.cpp | 21 switch(SWAPW(subtableFormat)) in process() 52 Offset pairSetTableOffset = SWAPW(pairSetTableOffsetArray[coverageIndex]); in process() 54 le_uint16 pairValueCount = SWAPW(pairSetTable->pairValueCount); in process() 55 le_int16 valueRecord1Size = ValueRecord::getSize(SWAPW(valueFormat1)); in process() 56 le_int16 valueRecord2Size = ValueRecord::getSize(SWAPW(valueFormat2)); in process() 70 …pairValueRecord->valueRecord1.adjustPosition(SWAPW(valueFormat1), (char *) this, tempIterator, fon… in process() 76 … valueRecord2->adjustPosition(SWAPW(valueFormat2), (char *) this, *glyphIterator, fontInstance); in process() 96 …finitionTable *classDef1 = (const ClassDefinitionTable *) ((char *) this + SWAPW(classDef1Offset)); in process() 97 …finitionTable *classDef2 = (const ClassDefinitionTable *) ((char *) this + SWAPW(classDef2Offset)); in process() 100 le_int16 valueRecord1Size = ValueRecord::getSize(SWAPW(valueFormat1)); in process() [all …]
|
D | ClassDefinitionTables.cpp | 17 switch(SWAPW(classFormat)) { in getGlyphClass() 42 switch(SWAPW(classFormat)) { in hasGlyphClass() 68 TTGlyphID firstGlyph = SWAPW(startGlyph); in getGlyphClass() 69 TTGlyphID lastGlyph = firstGlyph + SWAPW(glyphCount); in getGlyphClass() 72 return SWAPW(classValueArray[ttGlyphID - firstGlyph]); in getGlyphClass() 80 le_uint16 count = SWAPW(glyphCount); in hasGlyphClass() 84 if (SWAPW(classValueArray[i]) == glyphClass) { in hasGlyphClass() 95 le_uint16 rangeCount = SWAPW(classRangeCount); in getGlyphClass() 103 return SWAPW(classRangeRecordArray[rangeIndex].rangeValue); in getGlyphClass() 108 le_uint16 rangeCount = SWAPW(classRangeCount); in hasGlyphClass() [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 | ContextualGlyphSubstProc2.cpp | 43 le_uint16 newState = SWAPW(entry->newStateIndex); in processStateEntry() 44 le_uint16 flags = SWAPW(entry->flags); in processStateEntry() 45 le_int16 markIndex = SWAPW(entry->markIndex); in processStateEntry() 46 le_int16 currIndex = SWAPW(entry->currIndex); in processStateEntry() 76 le_int16 format = SWAPW(lookupTable->format); in lookup() 85 newGlyph = SWAPW(lookupTable0->valueArray[glyphCode]); in lookup() 95 newGlyph = SWAPW(segment->value); in lookup() 111 newGlyph = SWAPW(segment->value); in lookup() 118 TTGlyphID firstGlyph = SWAPW(lookupTable8->firstGlyph); in lookup() 119 TTGlyphID lastGlyph = firstGlyph + SWAPW(lookupTable8->glyphCount); in lookup() [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 | Features.cpp | 18 if (featureIndex >= SWAPW(featureCount)) { in getFeatureTable() 26 return (const FeatureTable *) ((char *) this + SWAPW(featureTableOffset)); in getFeatureTable() 41 …tilities::getTagOffset(featureTag, (TagAndOffsetRecord *) featureRecordArray, SWAPW(featureCount)); in getFeatureTable() 47 return (const FeatureTable *) ((char *) this + SWAPW(featureTableOffset)); in getFeatureTable() 49 int count = SWAPW(featureCount); in getFeatureTable() 53 … return (const FeatureTable *) ((char *) this + SWAPW(featureRecordArray[i].featureTableOffset)); in getFeatureTable()
|
D | StateTableProcessor2.cpp | 34 format = SWAPW(classTable->format); in StateTableProcessor2() 75 classCode = SWAPW(lookupTable0->valueArray[gid]); in process() 78 … EntryTableIndex2 entryTableIndex = SWAPW(stateArray[classCode + currentState * nClasses]); in process() 100 classCode = SWAPW(segment->value); in process() 104 … EntryTableIndex2 entryTableIndex = SWAPW(stateArray[classCode + currentState * nClasses]); in process() 129 classCode = SWAPW(segment->value); in process() 133 … EntryTableIndex2 entryTableIndex = SWAPW(stateArray[classCode + currentState * nClasses]); in process() 140 TTGlyphID firstGlyph = SWAPW(lookupTable8->firstGlyph); in process() 141 TTGlyphID lastGlyph = firstGlyph + SWAPW(lookupTable8->glyphCount); in process() 153 classCode = SWAPW(lookupTable8->valueArray[glyphCode - firstGlyph]); in process() [all …]
|
D | ContextualGlyphSubstProc.cpp | 25 substitutionTableOffset = SWAPW(contextualGlyphSubstitutionHeader->substitutionTableOffset); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 42 ByteOffset newState = SWAPW(entry->newStateOffset); in processStateEntry() 43 le_int16 flags = SWAPW(entry->flags); in processStateEntry() 44 WordOffset markOffset = SWAPW(entry->markOffset); in processStateEntry() 45 WordOffset currOffset = SWAPW(entry->currOffset); in processStateEntry() 50 TTGlyphID newGlyph = SWAPW(table[LE_GET_GLYPH(mGlyph)]); in processStateEntry() 58 TTGlyphID newGlyph = SWAPW(table[LE_GET_GLYPH(thisGlyph)]); 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? SWAPW(featureTable->lookupCount) : 0; in selectLookups() 119 le_uint16 lookupListIndex = SWAPW(featureTable->lookupListIndexArray[lookup]); in selectLookups() 153 featureCount = SWAPW(langSysTable->featureCount); in LookupProcessor() 163 lookupListCount = SWAPW(lookupListTable->lookupCount); in LookupProcessor() 171 requiredFeatureIndex = SWAPW(langSysTable->reqFeatureIndex); in LookupProcessor() 197 le_uint16 featureIndex = SWAPW(langSysTable->featureIndexArray[feature]); in LookupProcessor() [all …]
|
D | Lookups.cpp | 17 if (lookupTableIndex >= SWAPW(lookupCount)) { in getLookupTable() 23 return (const LookupTable *) ((char *) this + SWAPW(lookupTableOffset)); in getLookupTable() 28 if (subtableIndex >= SWAPW(subTableCount)) { in getLookupSubtable() 34 return (const LookupSubtable *) ((char *) this + SWAPW(subtableOffset)); in getLookupSubtable() 39 … const CoverageTable *coverageTable = (const CoverageTable *) ((char *) this + SWAPW(tableOffset)); in getGlyphCoverage()
|
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() 31 TTGlyphID ligGlyph = SWAPW(ligTable->ligGlyph); in process() 39 … if (LE_GET_GLYPH(glyphIterator->getCurrGlyphID()) != SWAPW(ligTable->componentArray[comp])) { 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() 33 firstGlyph = SWAPW(classTable->firstGlyph); in StateTableProcessor() 34 lastGlyph = firstGlyph + SWAPW(classTable->nGlyphs); in StateTableProcessor()
|
D | MultipleSubstSubtables.cpp | 37 le_uint16 seqCount = SWAPW(sequenceCount); in process() 40 Offset sequenceTableOffset = SWAPW(sequenceTableOffsetArray[coverageIndex]); in process() 42 le_uint16 glyphCount = SWAPW(sequenceTable->glyphCount); in process() 48 TTGlyphID substitute = SWAPW(sequenceTable->substituteArray[0]); in process() 61 TTGlyphID substitute = SWAPW(sequenceTable->substituteArray[i]); in process() 82 TTGlyphID substitute = SWAPW(sequenceTable->substituteArray[i]); in process()
|
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() 48 ByteOffset newState = SWAPW(entry->newStateOffset); in processStateEntry() 49 le_int16 flags = SWAPW(entry->flags); in processStateEntry() 81 i += SWAPW(offsetTable[LE_GET_GLYPH(glyphStorage[componentGlyph])]); in processStateEntry() 85 TTGlyphID ligatureGlyph = SWAPW(*ligatureOffset); in processStateEntry()
|
/external/harfbuzz_ng/src/hb-icu-le/ |
D | PortableFontInstance.cpp | 48 fAscent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->ascent)); in PortableFontInstance() 49 fDescent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->descent)); in PortableFontInstance() 50 fLeading = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->lineGap)); in PortableFontInstance() 52 fNumLongHorMetrics = SWAPW(hheaTable->numOfLongHorMetrics); in PortableFontInstance() 99 realThis->fNameCount = SWAPW(realThis->fNAMETable->count); in getNameString() 100 realThis->fNameStringOffset = SWAPW(realThis->fNAMETable->stringOffset); in getNameString() 107 … if (SWAPW(nameRecord->platformID) == platformID && SWAPW(nameRecord->encodingID) == encodingID && in getNameString() 108 SWAPW(nameRecord->languageID) == languageID && SWAPW(nameRecord->nameID) == nameID) { in getNameString() 109 char *name = ((char *) fNAMETable) + fNameStringOffset + SWAPW(nameRecord->offset); in getNameString() 110 le_uint16 length = SWAPW(nameRecord->length); in getNameString() [all …]
|
D | cmaps.cpp | 14 #define SWAPU16(code) ((LEUnicode16) SWAPW(code)) 56 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper() 63 if (SWAPW(esh->platformID) == 3) { in createUnicodeMapper() 64 switch (SWAPW(esh->platformSpecificID)) { in createUnicodeMapper() 86 switch (SWAPW(subtable->format)) { in createUnicodeMapper() 107 le_uint16 segCount = SWAPW(header->segCountX2) / 2; in CMAPFormat4Mapper() 109 fEntrySelector = SWAPW(header->entrySelector); in CMAPFormat4Mapper() 110 fRangeShift = SWAPW(header->rangeShift) / 2; in CMAPFormat4Mapper() 145 le_uint16 rangeOffset = SWAPW(fIdRangeOffset[index]); in unicodeToGlyph() 148 result = SWAPW(glyphIndexTable[offset]); in unicodeToGlyph() [all …]
|
/external/icu4c/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 …]
|