Lines Matching defs:ce32

251         int ce32 = (int)cAndCE32;
252 int t = ce32 & 0xff;
253 if(t < Collation.SPECIAL_CE32_LOW_BYTE) { // Forced-inline of isSpecialCE32(ce32).
255 // Forced-inline of ceFromSimpleCE32(ce32).
257 ((long)(ce32 & 0xffff0000) << 32) | ((long)(ce32 & 0xff00) << 16) | (t << 8));
267 ce32 = d.getCE32(c);
268 t = ce32 & 0xff;
272 ((long)(ce32 & 0xffff0000) << 32) | ((long)(ce32 & 0xff00) << 16) | (t << 8));
278 // Forced-inline of ceFromLongPrimaryCE32(ce32).
280 ((long)(ce32 - t) << 32) | Collation.COMMON_SEC_AND_TER_CE);
282 return nextCEFromCE32(d, c, ce32);
322 int ce32 = data.getCE32(c);
324 if(ce32 == Collation.FALLBACK_CE32) {
326 ce32 = d.getCE32(c);
330 if(Collation.isSimpleOrLongCE32(ce32)) {
331 return Collation.ceFromCE32(ce32);
333 appendCEsFromCE32(d, c, ce32, false);
411 protected long makeCodePointAndCE32Pair(int c, int ce32) {
412 return ((long)c << 32) | (ce32 & 0xffffffffL);
456 protected int getCE32FromBuilderData(int ce32) {
460 protected final void appendCEsFromCE32(CollationData d, int c, int ce32,
462 while(Collation.isSpecialCE32(ce32)) {
463 switch(Collation.tagFromCE32(ce32)) {
468 ceBuffer.append(Collation.ceFromLongPrimaryCE32(ce32));
471 ceBuffer.append(Collation.ceFromLongSecondaryCE32(ce32));
475 ceBuffer.set(ceBuffer.length, Collation.latinCE0FromCE32(ce32));
476 ceBuffer.set(ceBuffer.length + 1, Collation.latinCE1FromCE32(ce32));
480 int index = Collation.indexFromCE32(ce32);
481 int length = Collation.lengthFromCE32(ce32);
489 int index = Collation.indexFromCE32(ce32);
490 int length = Collation.lengthFromCE32(ce32);
498 ce32 = getCE32FromBuilderData(ce32);
499 if(ce32 == Collation.FALLBACK_CE32) {
501 ce32 = d.getCE32(c);
506 ce32 = getCE32FromPrefix(d, ce32);
510 int index = Collation.indexFromCE32(ce32);
515 ce32 = defaultCE32;
525 ce32 = defaultCE32;
527 } else if((ce32 & Collation.CONTRACT_NEXT_CCC) != 0 &&
532 ce32 = defaultCE32;
539 ce32 = defaultCE32;
541 } else if((ce32 & Collation.CONTRACT_NEXT_CCC) != 0 &&
546 ce32 = defaultCE32;
550 ce32 = nextCE32FromContraction(d, ce32, d.contexts, index + 2, defaultCE32, nextCp);
551 if(ce32 == Collation.NO_CE32) {
560 appendNumericCEs(ce32, forward);
564 ce32 = d.ce32s[Collation.indexFromCE32(ce32)];
570 // Fetch the normal ce32 for U+0000 and continue.
571 ce32 = d.ce32s[0];
580 if((ce32 & Collation.HANGUL_NO_SPECIAL_JAMO) != 0) {
593 // In particular, there should be no offset or implicit ce32.
601 ce32 = jamoCE32s[39 + t];
612 ce32 &= Collation.LEAD_TYPE_MASK;
613 if(ce32 == Collation.LEAD_ALL_UNASSIGNED) {
614 ce32 = Collation.UNASSIGNED_CE32; // unassigned-implicit
615 } else if(ce32 == Collation.LEAD_ALL_FALLBACK ||
616 (ce32 = d.getCE32FromSupplementary(c)) == Collation.FALLBACK_CE32) {
619 ce32 = d.getCE32FromSupplementary(c);
623 ce32 = Collation.UNASSIGNED_CE32;
629 ceBuffer.append(d.getCEFromOffsetCE32(c, ce32));
634 ce32 = Collation.FFFD_CE32;
642 ceBuffer.append(Collation.ceFromSimpleCE32(ce32));
664 private final long nextCEFromCE32(CollationData d, int c, int ce32) {
666 appendCEsFromCE32(d, c, ce32, true);
670 private final int getCE32FromPrefix(CollationData d, int ce32) {
671 int index = Collation.indexFromCE32(ce32);
672 ce32 = d.getCE32FromContexts(index); // Default if no prefix match.
683 ce32 = prefixes.getValue();
688 return ce32;
710 CharSequence trieChars, int trieOffset, int ce32, int c) {
727 ce32 = suffixes.getValue();
729 return ce32;
755 d, suffixes, ce32, lookAhead, c);
771 return ce32;
775 CollationData d, CharsTrie suffixes, int ce32,
800 return ce32;
808 return ce32;
845 ce32 = suffixes.getValue();
870 // Append CEs from the contraction ce32
874 appendCEsFromCE32(d, c, ce32, true);
879 ce32 = getDataCE32(c);
880 if(ce32 == Collation.FALLBACK_CE32) {
882 ce32 = d.getCE32(c);
891 ce32 = Collation.NO_CE32; // Signal to the caller that the result is in the ceBuffer.
893 return ce32;
968 * Starts from this ce32's digit value and consumes the following/preceding digits.
971 private final void appendNumericCEs(int ce32, boolean forward) {
977 char digit = Collation.digitFromCE32(ce32);
982 ce32 = data.getCE32(c);
983 if(ce32 == Collation.FALLBACK_CE32) {
984 ce32 = data.base.getCE32(c);
986 if(!Collation.hasCE32Tag(ce32, Collation.DIGIT_TAG)) {
994 char digit = Collation.digitFromCE32(ce32);
998 ce32 = data.getCE32(c);
999 if(ce32 == Collation.FALLBACK_CE32) {
1000 ce32 = data.base.getCE32(c);
1002 if(!Collation.hasCE32Tag(ce32, Collation.DIGIT_TAG)) {