Home
last modified time | relevance | path

Searched refs:ce32 (Results 1 – 16 of 16) sorted by relevance

/external/icu/icu4c/source/i18n/
Dcollation.h273 static UBool isAssignedCE32(uint32_t ce32) { in isAssignedCE32() argument
274 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32; in isAssignedCE32()
309 static inline uint32_t primaryFromLongPrimaryCE32(uint32_t ce32) { in primaryFromLongPrimaryCE32() argument
310 return ce32 & 0xffffff00; in primaryFromLongPrimaryCE32()
312 static inline int64_t ceFromLongPrimaryCE32(uint32_t ce32) { in ceFromLongPrimaryCE32() argument
313 return ((int64_t)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE; in ceFromLongPrimaryCE32()
319 static inline int64_t ceFromLongSecondaryCE32(uint32_t ce32) { in ceFromLongSecondaryCE32() argument
320 return ce32 & 0xffffff00; in ceFromLongSecondaryCE32()
332 static inline UBool isSpecialCE32(uint32_t ce32) { in isSpecialCE32() argument
333 return (ce32 & 0xff) >= SPECIAL_CE32_LOW_BYTE; in isSpecialCE32()
[all …]
Dcollationdatabuilder.cpp56 ce32(ce), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32()
73 uint32_t ce32; member
141 virtual uint32_t getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode);
183 uint32_t ce32 = utrie2_get32(builder.trie, c); in fetchCEs() local
185 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs()
187 ce32 = builder.base->getCE32(c); in fetchCEs()
191 appendCEsFromCE32(d, c, ce32, /*forward=*/ TRUE, errorCode); in fetchCEs()
253 DataBuilderCollationIterator::getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode) { in getCE32FromBuilderData() argument
254 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData()
255 if((ce32 & CollationDataBuilder::IS_BUILDER_JAMO_CE32) != 0) { in getCE32FromBuilderData()
[all …]
Dcollationiterator.cpp237 CollationIterator::nextCEFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in nextCEFromCE32() argument
240 appendCEsFromCE32(d, c, ce32, TRUE, errorCode); in nextCEFromCE32()
249 CollationIterator::appendCEsFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in appendCEsFromCE32() argument
251 while(Collation::isSpecialCE32(ce32)) { in appendCEsFromCE32()
252 switch(Collation::tagFromCE32(ce32)) { in appendCEsFromCE32()
258 ceBuffer.append(Collation::ceFromLongPrimaryCE32(ce32), errorCode); in appendCEsFromCE32()
261 ceBuffer.append(Collation::ceFromLongSecondaryCE32(ce32), errorCode); in appendCEsFromCE32()
265 ceBuffer.set(ceBuffer.length, Collation::latinCE0FromCE32(ce32)); in appendCEsFromCE32()
266 ceBuffer.set(ceBuffer.length + 1, Collation::latinCE1FromCE32(ce32)); in appendCEsFromCE32()
271 const uint32_t *ce32s = d->ce32s + Collation::indexFromCE32(ce32); in appendCEsFromCE32()
[all …]
Dcollationsets.cpp33 enumTailoredRange(const void *context, UChar32 start, UChar32 end, uint32_t ce32) { in enumTailoredRange() argument
34 if(ce32 == Collation::FALLBACK_CE32) { in enumTailoredRange()
38 return ts->handleCE32(start, end, ce32); in enumTailoredRange()
55 TailoredSet::handleCE32(UChar32 start, UChar32 end, uint32_t ce32) { in handleCE32() argument
56 U_ASSERT(ce32 != Collation::FALLBACK_CE32); in handleCE32()
57 if(Collation::isSpecialCE32(ce32)) { in handleCE32()
58 ce32 = data->getIndirectCE32(ce32); in handleCE32()
59 if(ce32 == Collation::FALLBACK_CE32) { in handleCE32()
68 if(Collation::isSelfContainedCE32(ce32) && Collation::isSelfContainedCE32(baseCE32)) { in handleCE32()
70 if(ce32 != baseCE32) { in handleCE32()
[all …]
Dcollationiterator.h122 uint32_t ce32 = handleNextCE32(c, errorCode); in nextCE() local
123 uint32_t t = ce32 & 0xff; in nextCE()
128 ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (t << 8)); in nextCE()
138 ce32 = d->getCE32(c); in nextCE()
139 t = ce32 & 0xff; in nextCE()
143 ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (t << 8)); in nextCE()
151 ((int64_t)(ce32 - t) << 32) | Collation::COMMON_SEC_AND_TER_CE); in nextCE()
153 return nextCEFromCE32(d, c, ce32, errorCode); in nextCE()
254 virtual uint32_t getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode);
256 void appendCEsFromCE32(const CollationData *d, UChar32 c, uint32_t ce32,
[all …]
Dcollationdata.cpp28 CollationData::getIndirectCE32(uint32_t ce32) const { in getIndirectCE32()
29 U_ASSERT(Collation::isSpecialCE32(ce32)); in getIndirectCE32()
30 int32_t tag = Collation::tagFromCE32(ce32); in getIndirectCE32()
33 ce32 = ce32s[Collation::indexFromCE32(ce32)]; in getIndirectCE32()
35 ce32 = Collation::UNASSIGNED_CE32; in getIndirectCE32()
38 ce32 = ce32s[0]; in getIndirectCE32()
40 return ce32; in getIndirectCE32()
44 CollationData::getFinalCE32(uint32_t ce32) const { in getFinalCE32()
45 if(Collation::isSpecialCE32(ce32)) { in getFinalCE32()
46 ce32 = getIndirectCE32(ce32); in getFinalCE32()
[all …]
Dcollationdatabuilder.h56 virtual int64_t modifyCE32(uint32_t ce32) const = 0;
107 uint32_t ce32, UErrorCode &errorCode);
171 uint32_t getCE32FromOffsetCE32(UBool fromBase, UChar32 c, uint32_t ce32) const;
174 int32_t addCE32(uint32_t ce32, UErrorCode &errorCode);
175 int32_t addConditionalCE32(const UnicodeString &context, uint32_t ce32, UErrorCode &errorCode);
180 inline ConditionalCE32 *getConditionalCE32ForCE32(uint32_t ce32) const { in getConditionalCE32ForCE32() argument
181 return getConditionalCE32(Collation::indexFromCE32(ce32)); in getConditionalCE32ForCE32()
187 static inline UBool isBuilderContextCE32(uint32_t ce32) { in isBuilderContextCE32() argument
188 return Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG); in isBuilderContextCE32()
196 uint32_t copyFromBaseCE32(UChar32 c, uint32_t ce32, UBool withContext, UErrorCode &errorCode);
[all …]
Dcollationfastlatinbuilder.cpp231 uint32_t ce32 = data.getCE32(c); in getCEs() local
232 if(ce32 == Collation::FALLBACK_CE32) { in getCEs()
234 ce32 = d->getCE32(c); in getCEs()
238 if(getCEsFromCE32(*d, c, ce32, errorCode)) { in getCEs()
262 CollationFastLatinBuilder::getCEsFromCE32(const CollationData &data, UChar32 c, uint32_t ce32, in getCEsFromCE32() argument
265 ce32 = data.getFinalCE32(ce32); in getCEsFromCE32()
267 if(Collation::isSimpleOrLongCE32(ce32)) { in getCEsFromCE32()
268 ce0 = Collation::ceFromCE32(ce32); in getCEsFromCE32()
270 switch(Collation::tagFromCE32(ce32)) { in getCEsFromCE32()
272 ce0 = Collation::latinCE0FromCE32(ce32); in getCEsFromCE32()
[all …]
Dcollationsets.h55 UBool handleCE32(UChar32 start, UChar32 end, uint32_t ce32);
58 void compare(UChar32 c, uint32_t ce32, uint32_t baseCE32);
63 void addPrefix(const CollationData *d, const UnicodeString &pfx, UChar32 c, uint32_t ce32);
108 void handleCE32(UChar32 start, UChar32 end, uint32_t ce32);
110 void handlePrefixes(UChar32 start, UChar32 end, uint32_t ce32);
111 void handleContractions(UChar32 start, UChar32 end, uint32_t ce32);
Dcollationbuilder.cpp554 uint32_t ce32 = baseData->getCE32(0x4e00); in getSpecialResetPosition() local
555 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::OFFSET_TAG)); in getSpecialResetPosition()
556 ce = baseData->getCEFromOffsetCE32(0x4e00, ce32); in getSpecialResetPosition()
739 uint32_t ce32 = Collation::UNASSIGNED_CE32; in addRelation() local
745 ce32 = addIfDifferent(prefix, str, ces, cesLength, ce32, errorCode); in addRelation()
747 addWithClosure(nfdPrefix, nfdString, ces, cesLength, ce32, errorCode); in addRelation()
1067 const int64_t newCEs[], int32_t newCEsLength, uint32_t ce32, in addWithClosure() argument
1070 ce32 = addIfDifferent(nfdPrefix, nfdString, newCEs, newCEsLength, ce32, errorCode); in addWithClosure()
1071 ce32 = addOnlyClosure(nfdPrefix, nfdString, newCEs, newCEsLength, ce32, errorCode); in addWithClosure()
1073 return ce32; in addWithClosure()
[all …]
Dcollationbuilder.h123 const int64_t newCEs[], int32_t newCEsLength, uint32_t ce32,
126 const int64_t newCEs[], int32_t newCEsLength, uint32_t ce32,
142 const int64_t newCEs[], int32_t newCEsLength, uint32_t ce32,
210 static inline UBool isTempCE32(uint32_t ce32) { in isTempCE32() argument
212 (ce32 & 0xff) >= 2 && // not a long-primary/long-secondary CE32 in isTempCE32()
213 6 <= ((ce32 >> 8) & 0xff) && ((ce32 >> 8) & 0xff) <= 0x45; in isTempCE32()
Dcollationdata.h86 uint32_t getIndirectCE32(uint32_t ce32) const;
91 uint32_t getFinalCE32(uint32_t ce32) const;
96 int64_t getCEFromOffsetCE32(UChar32 c, uint32_t ce32) const { in getCEFromOffsetCE32()
97 int64_t dataCE = ces[Collation::indexFromCE32(ce32)]; in getCEFromOffsetCE32()
Dcollationbasedatabuilder.cpp142 uint32_t ce32 = Collation::FFFD_CE32; in init() local
143 utrie2_set32(trie, 0xfffd, ce32, &errorCode); in init()
144 addRootElement(Collation::ceFromSimpleCE32(ce32), errorCode); in init()
147 ce32 = Collation::MAX_REGULAR_CE32; in init()
148 utrie2_set32(trie, 0xffff, ce32, &errorCode); in init()
149 addRootElement(Collation::ceFromSimpleCE32(ce32), errorCode); in init()
Dcollationfastlatinbuilder.h47 UBool getCEsFromCE32(const CollationData &data, UChar32 c, uint32_t ce32,
49 UBool getCEsFromContractionCE32(const CollationData &data, uint32_t ce32,
Dutf8collationiterator.cpp57 uint32_t ce32 = trie->data32[trie->index[(UTRIE2_UTF8_2B_INDEX_2_OFFSET - 0xc0) + c] + t1]; in handleNextCE32() local
60 return ce32; in handleNextCE32()
166 … uint32_t ce32 = trie->data32[trie->index[(UTRIE2_UTF8_2B_INDEX_2_OFFSET - 0xc0) + c] + t1]; in handleNextCE32() local
172 return ce32; in handleNextCE32()
/external/chromium_org/third_party/icu/source/i18n/
Dalphaindex.cpp401 int32_t ce32 = cei.next(errorCode); in hasMultiplePrimaryWeights() local
402 if (ce32 == CollationElementIterator::NULLORDER) { in hasMultiplePrimaryWeights()
405 int32_t p = CollationElementIterator::primaryOrder(ce32); in hasMultiplePrimaryWeights()
406 if (p > variableTop && (ce32 & 0xc0) != 0xc0) { in hasMultiplePrimaryWeights()