Lines Matching defs:ce
59 binarySearch(const UVector64 &list, int64_t ce) {
65 int32_t cmp = compareInt64AsUnsigned(ce, list.elementAti(i));
70 return ~start; // insert ce before i
75 return ~(start + 1); // insert ce after i
111 // For a base, the default is to compute an unassigned-character implicit CE.
123 // Some code assumes that the root first primary CE is the "space first primary"
133 int64_t ce = Collation::makeCE(Collation::FIRST_UNASSIGNED_PRIMARY);
134 add(UnicodeString(), s, &ce, 1, errorCode);
137 ce = Collation::makeCE(Collation::FIRST_TRAILING_PRIMARY);
138 rootElements.addElement(ce, errorCode);
140 // U+FFFD maps to a CE with the third-highest primary weight,
146 // U+FFFF maps to a CE with the highest primary weight.
271 CollationBaseDataBuilder::addRootElement(int64_t ce, UErrorCode &errorCode) {
272 if(U_FAILURE(errorCode) || ce == 0) { return; }
274 ce &= INT64_C(0xffffffffffff3fff);
275 U_ASSERT((ce & 0xc0) == 0); // quaternary==0
276 // Ignore the CE if it has a Han primary weight and common secondary/tertiary weights.
278 uint32_t p = (uint32_t)(ce >> 32);
279 uint32_t secTer = (uint32_t)ce;
298 int32_t i = binarySearch(rootElements, ce);
300 rootElements.insertElementAt(ce, ~i, errorCode);
345 int64_t ce = rootElements.elementAti(i);
346 uint32_t p = (uint32_t)(ce >> 32);
347 uint32_t secTer = (uint32_t)ce & Collation::ONLY_SEC_TER_MASK;
396 ce = rootElements.elementAti(end);
397 p = (uint32_t)(ce >> 32);
398 secTer = (uint32_t)ce & Collation::ONLY_SEC_TER_MASK;
401 // Write the primary weight of a normal CE.
465 // Fetch the actual next CE.
466 int64_t ce = rootElements.elementAti(i);
467 p = (uint32_t)(ce >> 32);
468 uint32_t secTer = (uint32_t)ce & Collation::ONLY_SEC_TER_MASK;
474 // The range ends with the previous CE.