Lines Matching defs:ce32
78 * Requires that ce32 is special.
80 int getIndirectCE32(int ce32) {
81 assert(Collation.isSpecialCE32(ce32));
82 int tag = Collation.tagFromCE32(ce32);
85 ce32 = ce32s[Collation.indexFromCE32(ce32)];
87 ce32 = Collation.UNASSIGNED_CE32;
89 // Fetch the normal ce32 for U+0000.
90 ce32 = ce32s[0];
92 return ce32;
97 * if ce32 is special.
99 int getFinalCE32(int ce32) {
100 if(Collation.isSpecialCE32(ce32)) {
101 ce32 = getIndirectCE32(ce32);
103 return ce32;
107 * Computes a CE from c's ce32 which has the OFFSET_TAG.
109 long getCEFromOffsetCE32(int c, int ce32) {
110 long dataCE = ces[Collation.indexFromCE32(ce32)];
120 int ce32 = getCE32(c);
121 if(ce32 == Collation.FALLBACK_CE32) {
123 ce32 = base.getCE32(c);
127 while(Collation.isSpecialCE32(ce32)) {
128 switch(Collation.tagFromCE32(ce32)) {
137 c, ce32));
141 "unexpected CE32 tag for U+%04X (CE32 0x%08x)", c, ce32));
143 return Collation.ceFromLongPrimaryCE32(ce32);
145 return Collation.ceFromLongSecondaryCE32(ce32);
147 if(Collation.lengthFromCE32(ce32) == 1) {
148 ce32 = d.ce32s[Collation.indexFromCE32(ce32)];
153 c, ce32));
156 if(Collation.lengthFromCE32(ce32) == 1) {
157 return d.ces[Collation.indexFromCE32(ce32)];
161 c, ce32));
166 ce32 = d.ce32s[Collation.indexFromCE32(ce32)];
170 // Fetch the normal ce32 for U+0000 and continue.
171 ce32 = d.ce32s[0];
174 return d.getCEFromOffsetCE32(c, ce32);
179 return Collation.ceFromSimpleCE32(ce32);