Searched refs:ce32 (Results 1 - 22 of 22) sorted by relevance

/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
H A DCollation.java276 static boolean isAssignedCE32(int ce32) { argument
277 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32;
312 static long primaryFromLongPrimaryCE32(int ce32) { argument
313 return (long)ce32 & 0xffffff00L;
315 static long ceFromLongPrimaryCE32(int ce32) { argument
316 return ((long)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE;
322 static long ceFromLongSecondaryCE32(int ce32) { argument
323 return (long)ce32 & 0xffffff00L;
335 static boolean isSpecialCE32(int ce32) { argument
339 tagFromCE32(int ce32) argument
343 hasCE32Tag(int ce32, int tag) argument
347 isLongPrimaryCE32(int ce32) argument
351 isSimpleOrLongCE32(int ce32) argument
360 isSelfContainedCE32(int ce32) argument
367 isPrefixCE32(int ce32) argument
371 isContractionCE32(int ce32) argument
375 ce32HasContext(int ce32) argument
385 latinCE0FromCE32(int ce32) argument
393 latinCE1FromCE32(int ce32) argument
400 indexFromCE32(int ce32) argument
407 lengthFromCE32(int ce32) argument
414 digitFromCE32(int ce32) argument
419 ceFromSimpleCE32(int ce32) argument
426 ceFromCE32(int ce32) argument
[all...]
H A DCollationDataBuilder.java43 long modifyCE32(int ce32); argument
118 int ce32 = encodeCEs(ces, cesLength);
119 addCE32(prefix, s, ce32);
123 * Encodes the ces as either the returned ce32 by itself,
124 * or by storing an expansion, with the returned ce32 referring to that.
164 int ce32 = encodeOneCEAsCE32(ces[i]);
165 if(ce32 == Collation.NO_CE32) { break; }
166 newCE32s[i] = ce32;
171 void addCE32(CharSequence prefix, CharSequence s, int ce32) { argument
196 trie.set(c, ce32);
374 int ce32; field in class:CollationDataBuilder.ConditionalCE32
395 getCE32FromOffsetCE32(boolean fromBase, int c, int ce32) argument
411 addCE32(int ce32) argument
420 addConditionalCE32(String context, int ce32) argument
436 getConditionalCE32ForCE32(int ce32) argument
443 isBuilderContextCE32(int ce32) argument
544 copyFromBaseCE32(int c, int ce32, boolean withContext) argument
633 copyContractionsFromBaseCE32(StringBuilder context, int c, int ce32, ConditionalCE32 cond) argument
675 copyRangeCE32(int start, int end, int ce32) argument
683 copyCE32(int ce32) argument
1298 getCE32FromBuilderData(int ce32) argument
[all...]
H A DContractionsAndExpansions.java71 private void enumCnERange(int start, int end, int ce32, ContractionsAndExpansions cne) { argument
77 if (ce32 == Collation.FALLBACK_CE32) {
94 cne.handleCE32(cne.ranges.getRangeStart(i), cne.ranges.getRangeEnd(i), ce32);
97 cne.handleCE32(start, end, ce32);
101 int ce32 = d.getCE32(c);
102 if (ce32 == Collation.FALLBACK_CE32) {
104 ce32 = d.getCE32(c);
107 handleCE32(c, c, ce32);
110 private void handleCE32(int start, int end, int ce32) { argument
112 if ((ce32
225 handlePrefixes(int start, int end, int ce32) argument
245 handleContractions(int start, int end, int ce32) argument
[all...]
H A DCollationIterator.java241 int ce32 = (int)cAndCE32;
242 int t = ce32 & 0xff;
243 if(t < Collation.SPECIAL_CE32_LOW_BYTE) { // Forced-inline of isSpecialCE32(ce32).
245 // Forced-inline of ceFromSimpleCE32(ce32).
247 ((long)(ce32 & 0xffff0000) << 32) | ((long)(ce32 & 0xff00) << 16) | (t << 8));
257 ce32 = d.getCE32(c);
258 t = ce32 & 0xff;
262 ((long)(ce32 & 0xffff0000) << 32) | ((long)(ce32
401 makeCodePointAndCE32Pair(int c, int ce32) argument
446 getCE32FromBuilderData(int ce32) argument
450 appendCEsFromCE32(CollationData d, int c, int ce32, boolean forward) argument
654 nextCEFromCE32(CollationData d, int c, int ce32) argument
660 getCE32FromPrefix(CollationData d, int ce32) argument
698 nextCE32FromContraction( CollationData d, int contractionCE32, CharSequence trieChars, int trieOffset, int ce32, int c) argument
764 nextCE32FromDiscontiguousContraction( CollationData d, CharsTrie suffixes, int ce32, int lookAhead, int c) argument
961 appendNumericCEs(int ce32, boolean forward) argument
[all...]
H A DCollationData.java76 * Requires that ce32 is special.
78 int getIndirectCE32(int ce32) { argument
79 assert(Collation.isSpecialCE32(ce32));
80 int tag = Collation.tagFromCE32(ce32);
83 ce32 = ce32s[Collation.indexFromCE32(ce32)];
85 ce32 = Collation.UNASSIGNED_CE32;
87 // Fetch the normal ce32 for U+0000.
88 ce32 = ce32s[0];
90 return ce32;
97 getFinalCE32(int ce32) argument
107 getCEFromOffsetCE32(int c, int ce32) argument
[all...]
H A DTailoredSet.java61 private void enumTailoredRange(int start, int end, int ce32, TailoredSet ts) { argument
62 if (ce32 == Collation.FALLBACK_CE32) {
65 ts.handleCE32(start, end, ce32);
71 private void handleCE32(int start, int end, int ce32) { argument
72 assert (ce32 != Collation.FALLBACK_CE32);
73 if (Collation.isSpecialCE32(ce32)) {
74 ce32 = data.getIndirectCE32(ce32);
75 if (ce32 == Collation.FALLBACK_CE32) {
81 // Do not just continue if ce32
95 compare(int c, int ce32, int baseCE32) argument
348 addPrefix(CollationData d, CharSequence pfx, int c, int ce32) argument
[all...]
H A DCollationFastLatinBuilder.java200 int ce32 = data.getCE32(c);
201 if(ce32 == Collation.FALLBACK_CE32) {
203 ce32 = d.getCE32(c);
207 if(getCEsFromCE32(d, c, ce32)) {
230 private boolean getCEsFromCE32(CollationData data, int c, int ce32) { argument
231 ce32 = data.getFinalCE32(ce32);
233 if(Collation.isSimpleOrLongCE32(ce32)) {
234 ce0 = Collation.ceFromCE32(ce32);
236 switch(Collation.tagFromCE32(ce32)) {
323 getCEsFromContractionCE32(CollationData data, int ce32) argument
[all...]
H A DCollationBuilder.java509 int ce32 = Collation.UNASSIGNED_CE32;
515 ce32 = addIfDifferent(prefix, str, ces, cesLength, ce32);
517 addWithClosure(nfdPrefix, nfdString, ces, cesLength, ce32);
850 * Takes ce32=dataBuilder.encodeCEs(...) so that the data builder
854 long[] newCEs, int newCEsLength, int ce32) {
856 ce32 = addIfDifferent(nfdPrefix, nfdString, newCEs, newCEsLength, ce32);
857 ce32 = addOnlyClosure(nfdPrefix, nfdString, newCEs, newCEsLength, ce32);
853 addWithClosure(CharSequence nfdPrefix, CharSequence nfdString, long[] newCEs, int newCEsLength, int ce32) argument
862 addOnlyClosure(CharSequence nfdPrefix, CharSequence nfdString, long[] newCEs, int newCEsLength, int ce32) argument
1089 addIfDifferent(CharSequence prefix, CharSequence str, long[] newCEs, int newCEsLength, int ce32) argument
1323 modifyCE32(int ce32) argument
1401 isTempCE32(int ce32) argument
[all...]
/external/icu/icu4c/source/i18n/
H A Dcollation.h275 static UBool isAssignedCE32(uint32_t ce32) { argument
276 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32;
311 static inline uint32_t primaryFromLongPrimaryCE32(uint32_t ce32) { argument
312 return ce32 & 0xffffff00;
314 static inline int64_t ceFromLongPrimaryCE32(uint32_t ce32) { argument
315 return ((int64_t)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE;
321 static inline int64_t ceFromLongSecondaryCE32(uint32_t ce32) { argument
322 return ce32 & 0xffffff00;
334 static inline UBool isSpecialCE32(uint32_t ce32) { argument
338 tagFromCE32(uint32_t ce32) argument
342 hasCE32Tag(uint32_t ce32, int32_t tag) argument
346 isLongPrimaryCE32(uint32_t ce32) argument
350 isSimpleOrLongCE32(uint32_t ce32) argument
359 isSelfContainedCE32(uint32_t ce32) argument
366 isPrefixCE32(uint32_t ce32) argument
370 isContractionCE32(uint32_t ce32) argument
374 ce32HasContext(uint32_t ce32) argument
384 latinCE0FromCE32(uint32_t ce32) argument
392 latinCE1FromCE32(uint32_t ce32) argument
399 indexFromCE32(uint32_t ce32) argument
406 lengthFromCE32(uint32_t ce32) argument
413 digitFromCE32(uint32_t ce32) argument
418 ceFromSimpleCE32(uint32_t ce32) argument
425 ceFromCE32(uint32_t ce32) argument
[all...]
H A Dcollationsets.cpp33 enumTailoredRange(const void *context, UChar32 start, UChar32 end, uint32_t ce32) { argument
34 if(ce32 == Collation::FALLBACK_CE32) {
38 return ts->handleCE32(start, end, ce32);
55 TailoredSet::handleCE32(UChar32 start, UChar32 end, uint32_t ce32) { argument
56 U_ASSERT(ce32 != Collation::FALLBACK_CE32);
57 if(Collation::isSpecialCE32(ce32)) {
58 ce32 = data->getIndirectCE32(ce32);
59 if(ce32 == Collation::FALLBACK_CE32) {
65 // Do not just continue if ce32
81 compare(UChar32 c, uint32_t ce32, uint32_t baseCE32) argument
315 addPrefix(const CollationData *d, const UnicodeString &pfx, UChar32 c, uint32_t ce32) argument
358 enumCnERange(const void *context, UChar32 start, UChar32 end, uint32_t ce32) argument
415 uint32_t ce32 = d->getCE32(c); local
426 handleCE32(UChar32 start, UChar32 end, uint32_t ce32) argument
539 handlePrefixes( UChar32 start, UChar32 end, uint32_t ce32) argument
558 handleContractions( UChar32 start, UChar32 end, uint32_t ce32) argument
[all...]
H A Dcollationdatabuilder.cpp54 ce32(0), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32),
58 ce32(ce), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32),
75 uint32_t ce32; member in struct:ConditionalCE32
143 virtual uint32_t getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode);
185 uint32_t ce32 = utrie2_get32(builder.trie, c); local
187 if(ce32 == Collation::FALLBACK_CE32) {
189 ce32 = builder.base->getCE32(c);
193 appendCEsFromCE32(d, c, ce32, /*forward=*/ TRUE, errorCode);
255 DataBuilderCollationIterator::getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode) { argument
256 U_ASSERT(Collation::hasCE32Tag(ce32, Collatio
414 uint32_t ce32 = utrie2_get32(trie, c); local
427 uint32_t ce32 = utrie2_get32(trie, c); local
498 addCE32(uint32_t ce32, UErrorCode &errorCode) argument
508 addConditionalCE32(const UnicodeString &context, uint32_t ce32, UErrorCode &errorCode) argument
530 uint32_t ce32 = encodeCEs(ces, cesLength, errorCode); local
535 addCE32(const UnicodeString &prefix, const UnicodeString &s, uint32_t ce32, UErrorCode &errorCode) argument
642 uint32_t ce32 = encodeOneCEAsCE32(ce); local
694 uint32_t ce32 = encodeOneCEAsCE32(ces[i]); local
769 copyFromBaseCE32(UChar32 c, uint32_t ce32, UBool withContext, UErrorCode &errorCode) argument
860 copyContractionsFromBaseCE32(UnicodeString &context, UChar32 c, uint32_t ce32, ConditionalCE32 *cond, UErrorCode &errorCode) argument
903 copyRangeCE32(UChar32 start, UChar32 end, uint32_t ce32) argument
912 copyCE32(uint32_t ce32) argument
1049 uint32_t ce32 = utrie2_get32(trie, c); local
1065 uint32_t ce32 = utrie2_get32(trie, c); local
1092 uint32_t ce32 = utrie2_get32(trie, jamo); local
1159 uint32_t ce32 = utrie2_get32(trie, c); local
1258 uint32_t ce32 = hangulCE32; local
1270 uint32_t ce32 = base->getCE32(c); local
1322 uint32_t ce32 = utrie2_get32(trie, iter.getCodepoint()); local
1338 uint32_t ce32 = utrie2_get32(trie, c); local
1371 uint32_t ce32; local
[all...]
H A Dcollationdata.cpp29 CollationData::getIndirectCE32(uint32_t ce32) const {
30 U_ASSERT(Collation::isSpecialCE32(ce32));
31 int32_t tag = Collation::tagFromCE32(ce32);
34 ce32 = ce32s[Collation::indexFromCE32(ce32)];
36 ce32 = Collation::UNASSIGNED_CE32;
38 // Fetch the normal ce32 for U+0000.
39 ce32 = ce32s[0];
41 return ce32;
45 CollationData::getFinalCE32(uint32_t ce32) cons
57 uint32_t ce32 = getCE32(c); local
[all...]
H A Dcollationiterator.cpp231 CollationIterator::getCE32FromBuilderData(uint32_t /*ce32*/, UErrorCode &errorCode) {
237 CollationIterator::nextCEFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, argument
240 appendCEsFromCE32(d, c, ce32, TRUE, errorCode);
249 CollationIterator::appendCEsFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, argument
251 while(Collation::isSpecialCE32(ce32)) {
252 switch(Collation::tagFromCE32(ce32)) {
258 ceBuffer.append(Collation::ceFromLongPrimaryCE32(ce32), errorCode);
261 ceBuffer.append(Collation::ceFromLongSecondaryCE32(ce32), errorCode);
265 ceBuffer.set(ceBuffer.length, Collation::latinCE0FromCE32(ce32));
266 ceBuffer.set(ceBuffer.length + 1, Collation::latinCE1FromCE32(ce32));
446 getCE32FromPrefix(const CollationData *d, uint32_t ce32, UErrorCode &errorCode) argument
488 nextCE32FromContraction(const CollationData *d, uint32_t contractionCE32, const UChar *p, uint32_t ce32, UChar32 c, UErrorCode &errorCode) argument
555 nextCE32FromDiscontiguousContraction( const CollationData *d, UCharsTrie &suffixes, uint32_t ce32, int32_t lookAhead, UChar32 c, UErrorCode &errorCode) argument
685 appendNumericCEs(uint32_t ce32, UBool forward, UErrorCode &errorCode) argument
854 uint32_t ce32 = data->getCE32(c); local
[all...]
H A Dcollationiterator.h122 uint32_t ce32 = handleNextCE32(c, errorCode); local
123 uint32_t t = ce32 & 0xff;
124 if(t < Collation::SPECIAL_CE32_LOW_BYTE) { // Forced-inline of isSpecialCE32(ce32).
126 // Forced-inline of ceFromSimpleCE32(ce32).
128 ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (t << 8));
138 ce32 = d->getCE32(c);
139 t = ce32 & 0xff;
143 ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32
[all...]
H A Dcollationdatabuilder.h56 virtual int64_t modifyCE32(uint32_t ce32) const = 0;
100 * Encodes the ces as either the returned ce32 by itself,
101 * or by storing an expansion, with the returned ce32 referring to that.
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 {
181 return getConditionalCE32(Collation::indexFromCE32(ce32));
187 static inline UBool isBuilderContextCE32(uint32_t ce32) { argument
[all...]
H A 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);
H A Dcollationbuilder.h124 * Takes ce32=dataBuilder->encodeCEs(...) so that the data builder
128 const int64_t newCEs[], int32_t newCEsLength, uint32_t ce32,
131 const int64_t newCEs[], int32_t newCEsLength, uint32_t ce32,
147 const int64_t newCEs[], int32_t newCEsLength, uint32_t ce32,
215 static inline UBool isTempCE32(uint32_t ce32) { argument
217 (ce32 & 0xff) >= 2 && // not a long-primary/long-secondary CE32
218 6 <= ((ce32 >> 8) & 0xff) && ((ce32 >> 8) & 0xff) <= 0x45;
H A Dcollationdata.h101 * Requires that ce32 is special.
103 uint32_t getIndirectCE32(uint32_t ce32) const;
106 * if ce32 is special.
108 uint32_t getFinalCE32(uint32_t ce32) const;
111 * Computes a CE from c's ce32 which has the OFFSET_TAG.
113 int64_t getCEFromOffsetCE32(UChar32 c, uint32_t ce32) const {
114 int64_t dataCE = ces[Collation::indexFromCE32(ce32)];
H A Dcollationfastlatinbuilder.cpp213 uint32_t ce32 = data.getCE32(c); local
214 if(ce32 == Collation::FALLBACK_CE32) {
216 ce32 = d->getCE32(c);
220 if(getCEsFromCE32(*d, c, ce32, errorCode)) {
244 CollationFastLatinBuilder::getCEsFromCE32(const CollationData &data, UChar32 c, uint32_t ce32, argument
247 ce32 = data.getFinalCE32(ce32);
249 if(Collation::isSimpleOrLongCE32(ce32)) {
250 ce0 = Collation::ceFromCE32(ce32);
252 switch(Collation::tagFromCE32(ce32)) {
340 getCEsFromContractionCE32(const CollationData &data, uint32_t ce32, UErrorCode &errorCode) argument
[all...]
H A Dcollationfastlatinbuilder.h50 UBool getCEsFromCE32(const CollationData &data, UChar32 c, uint32_t ce32,
52 UBool getCEsFromContractionCE32(const CollationData &data, uint32_t ce32,
H A Dcollationbuilder.cpp744 uint32_t ce32 = Collation::UNASSIGNED_CE32; local
750 ce32 = addIfDifferent(prefix, str, ces, cesLength, ce32, errorCode);
752 addWithClosure(nfdPrefix, nfdString, ces, cesLength, ce32, errorCode);
1100 const int64_t newCEs[], int32_t newCEsLength, uint32_t ce32,
1103 ce32 = addIfDifferent(nfdPrefix, nfdString, newCEs, newCEsLength, ce32, errorCode);
1104 ce32 = addOnlyClosure(nfdPrefix, nfdString, newCEs, newCEsLength, ce32, errorCode);
1106 return ce32;
1099 addWithClosure(const UnicodeString &nfdPrefix, const UnicodeString &nfdString, const int64_t newCEs[], int32_t newCEsLength, uint32_t ce32, UErrorCode &errorCode) argument
1110 addOnlyClosure(const UnicodeString &nfdPrefix, const UnicodeString &nfdString, const int64_t newCEs[], int32_t newCEsLength, uint32_t ce32, UErrorCode &errorCode) argument
1204 uint32_t ce32 = addIfDifferent(nfdPrefix, newString, local
1344 addIfDifferent(const UnicodeString &prefix, const UnicodeString &str, const int64_t newCEs[], int32_t newCEsLength, uint32_t ce32, UErrorCode &errorCode) argument
[all...]
H A Dutf8collationiterator.cpp57 uint32_t ce32 = trie->data32[trie->index[(UTRIE2_UTF8_2B_INDEX_2_OFFSET - 0xc0) + c] + t1]; local
60 return ce32;
166 uint32_t ce32 = trie->data32[trie->index[(UTRIE2_UTF8_2B_INDEX_2_OFFSET - 0xc0) + c] + t1]; local
172 return ce32;

Completed in 373 milliseconds