/external/icu4c/common/ |
D | stringtriebuilder.cpp | 84 StringTrieBuilder::writeNode(int32_t start, int32_t limit, int32_t unitIndex) { in writeNode() argument 88 if(unitIndex==getElementStringLength(start)) { in writeNode() 97 int32_t minUnit=getElementUnit(start, unitIndex); in writeNode() 98 int32_t maxUnit=getElementUnit(limit-1, unitIndex); in writeNode() 101 int32_t lastUnitIndex=getLimitOfLinearMatch(start, limit-1, unitIndex); in writeNode() 104 int32_t length=lastUnitIndex-unitIndex; in writeNode() 112 writeElementUnits(start, unitIndex, length); in writeNode() 116 int32_t length=countElementUnits(start, limit, unitIndex); in writeNode() 118 writeBranchSubNode(start, limit, unitIndex, length); in writeNode() 132 StringTrieBuilder::writeBranchSubNode(int32_t start, int32_t limit, int32_t unitIndex, int32_t leng… in writeBranchSubNode() argument [all …]
|
D | ucharstriebuilder.cpp | 231 UCharsTrieBuilder::getElementUnit(int32_t i, int32_t unitIndex) const { in getElementUnit() 232 return elements[i].charAt(unitIndex, strings); in getElementUnit() 241 UCharsTrieBuilder::getLimitOfLinearMatch(int32_t first, int32_t last, int32_t unitIndex) const { in getLimitOfLinearMatch() 245 while(++unitIndex<minStringLength && in getLimitOfLinearMatch() 246 firstElement.charAt(unitIndex, strings)== in getLimitOfLinearMatch() 247 lastElement.charAt(unitIndex, strings)) {} in getLimitOfLinearMatch() 248 return unitIndex; in getLimitOfLinearMatch() 252 UCharsTrieBuilder::countElementUnits(int32_t start, int32_t limit, int32_t unitIndex) const { in countElementUnits() 256 UChar unit=elements[i++].charAt(unitIndex, strings); in countElementUnits() 257 while(i<limit && unit==elements[i].charAt(unitIndex, strings)) { in countElementUnits() [all …]
|
/external/icu4c/common/unicode/ |
D | ucharstriebuilder.h | 125 virtual UChar getElementUnit(int32_t i, int32_t unitIndex) const; 128 virtual int32_t getLimitOfLinearMatch(int32_t first, int32_t last, int32_t unitIndex) const; 130 virtual int32_t countElementUnits(int32_t start, int32_t limit, int32_t unitIndex) const; 131 virtual int32_t skipElementsBySomeUnits(int32_t i, int32_t unitIndex, int32_t count) const; 132 virtual int32_t indexOfElementWithNextUnit(int32_t i, int32_t unitIndex, UChar unit) const; 149 virtual Node *createLinearMatchNode(int32_t i, int32_t unitIndex, int32_t length, 155 virtual int32_t writeElementUnits(int32_t i, int32_t unitIndex, int32_t length);
|
D | stringtriebuilder.h | 78 int32_t writeNode(int32_t start, int32_t limit, int32_t unitIndex); 80 int32_t writeBranchSubNode(int32_t start, int32_t limit, int32_t unitIndex, int32_t length); 85 Node *makeNode(int32_t start, int32_t limit, int32_t unitIndex, UErrorCode &errorCode); 87 Node *makeBranchSubNode(int32_t start, int32_t limit, int32_t unitIndex, 93 virtual UChar getElementUnit(int32_t i, int32_t unitIndex) const = 0; 100 virtual int32_t getLimitOfLinearMatch(int32_t first, int32_t last, int32_t unitIndex) const = 0; 104 virtual int32_t countElementUnits(int32_t start, int32_t limit, int32_t unitIndex) const = 0; 106 virtual int32_t skipElementsBySomeUnits(int32_t i, int32_t unitIndex, int32_t count) const = 0; 108 virtual int32_t indexOfElementWithNextUnit(int32_t i, int32_t unitIndex, UChar unit) const = 0; 359 virtual Node *createLinearMatchNode(int32_t i, int32_t unitIndex, int32_t length, [all …]
|
/external/icu4c/tools/makeconv/ |
D | gencnvex.c | 412 int32_t start, int32_t limit, int32_t unitIndex, in generateToUTable() argument 429 low=bytes[unitIndex]; in generateToUTable() 436 high=bytes[unitIndex]; in generateToUTable() 446 if(count<0x100 && (unitIndex==0 || uniqueCount>=(3*count)/4)) { in generateToUTable() 476 high=bytes[unitIndex]; in generateToUTable() 512 if(m->bLen==unitIndex+1) { in generateToUTable() 516 if(subStart<subLimit && mappings[map[subStart]].bLen==unitIndex+1) { in generateToUTable() 535 if(!generateToUTable(extData, table, subStart, subLimit, unitIndex+1, defaultValue)) { in generateToUTable() 709 int32_t start, int32_t limit, int32_t unitIndex, in generateFromUTable() argument 727 low=uchars[unitIndex]; in generateFromUTable() [all …]
|
/external/icu4c/test/intltest/ |
D | tufmtts.cpp | 269 for ( unsigned int unitIndex = 0; in testGreek() local 270 unitIndex < sizeof(tunits)/sizeof(tunits[0]); in testGreek() 271 ++unitIndex ) { in testGreek() 273 … TimeUnitAmount *tamt = new TimeUnitAmount(numbers[numberIndex], tunits[unitIndex], status); in testGreek() 277 … std::cout << "Failed to get TimeUnitAmount for " << tunits[unitIndex] << "\n"; in testGreek() 312 …dex]) + " style: " + (int)styles[styleIndex] + " units: " + (int)tunits[unitIndex], expected[count… in testGreek()
|