Home | History | Annotate | Download | only in i18n

Lines Matching defs:CE

507         /* found the ce in expansion, we'll just modify the size if it is
815 static uint32_t uprv_uca_addPrefix(tempUCATable *t, uint32_t CE,
837 fprintf(stdout, "El: %08X Pref: ", CE);
902 if(!isPrefix(CE)) {
905 firstContractionOffset = uprv_cnttab_addContraction(contractions, UPRV_CNTTAB_NEWELEMENT, 0, CE, status);
908 uprv_cnttab_addContraction(contractions, firstContractionOffset, 0xFFFF, CE, status);
909 CE = constructContractCE(SPEC_PROC_TAG, firstContractionOffset);
913 int32_t position = uprv_cnttab_findCP(contractions, CE, *element->prefix, status);
915 uint32_t eCE = uprv_cnttab_getCE(contractions, CE, position, status);
917 uprv_cnttab_setContraction(contractions, CE, position, *(element->prefix), newCE, status);
920 uprv_cnttab_insertContraction(contractions, CE, *(element->prefix), element->mapCE, status);
927 return CE;
935 static uint32_t uprv_uca_addContraction(tempUCATable *t, uint32_t CE,
972 if(!isContraction(CE)) {
975 firstContractionOffset = uprv_cnttab_addContraction(contractions, UPRV_CNTTAB_NEWELEMENT, 0, CE, status);
978 uprv_cnttab_addContraction(contractions, firstContractionOffset, 0xFFFF, CE, status);
979 CE = constructContractCE(CONTRACTION_TAG, firstContractionOffset);
983 int32_t position = uprv_cnttab_findCP(contractions, CE, *element->cPoints, status);
985 uint32_t eCE = uprv_cnttab_getCE(contractions, CE, position, status);
987 uprv_cnttab_setContraction(contractions, CE, position, *(element->cPoints), newCE, status);
990 uprv_cnttab_insertContraction(contractions, CE, *(element->cPoints), newCE, status);
995 /*ucmpe32_set(t->mapping, cp, CE);*/
996 utrie_set32(t->mapping, cp, CE);
997 } else if(!isContraction(CE)) { /* this is just a surrogate, and there is no contraction */
1000 } else { /* fill out the first stage of the contraction with the surrogate CE */
1001 uprv_cnttab_changeContraction(contractions, CE, 0, element->mapCE, status);
1002 uprv_cnttab_changeContraction(contractions, CE, 0xFFFF, element->mapCE, status);
1004 return CE;
1060 uint32_t CE = UCOL_NOT_FOUND;
1077 /*CE = ucmpe32_get(t->mapping, cp);*/
1078 CE = utrie_get32(t->mapping, cp, NULL);
1080 CE = uprv_uca_addContraction(t, CE, element, status);
1082 /*CE = ucmpe32_get(t->mapping, element->cPoints[0]);*/
1083 CE = utrie_get32(t->mapping, element->cPoints[0], NULL);
1085 if( CE != UCOL_NOT_FOUND) {
1086 if(isCntTableElement(CE) /*isContraction(CE)*/) { /* adding a non contraction element (thai, expansion, single) to already existing contraction */
1089 uprv_cnttab_setContraction(t->contractions, CE, 0, 0, element->mapCE, status);
1090 /* This loop has to change the CE at the end of contraction REDO!*/
1091 uprv_cnttab_changeLastCE(t->contractions, CE, element->mapCE, status);
1096 if ((element->prefixSize!=0) && (getCETag(CE)!=IMPLICIT_TAG)) {
1109 origElem->CEs[0]=CE;
1110 origElem->mapCE=CE;
1116 fprintf(stderr, "Warning - trying to overwrite existing data %08X for cp %04X with %08X\n", CE, element->cPoints[0], element->CEs[0]);
1125 return CE;
1137 uint32_t CE;
1160 /* we will construct a special CE that will go unchanged to the table */
1161 if(element->noOfCEs == 2 // a two CE expansion
1217 // Here, we either have one normal CE OR mapCE is set. Therefore, we stuff only
1219 // do numeric collation, we will just pick the CE we have and break out of case
1221 // a special, further processing will occur. If it's a simple CE, we'll return due
1299 CE = element->mapCE;
1301 CE = uprv_uca_finalizeAddition(t, element, status);
1304 return CE;
1322 uint32_t ce;
1325 /*ce = ucmpe32_get(mapping, v);*/
1326 ce = utrie_get32(mapping, v, NULL);
1327 if (ce < UCOL_SPECIAL_FLAG) {
1328 uprv_uca_setMaxExpansion(ce, 2, maxexpansion, status);
1335 /*ce = ucmpe32_get(mapping, t);*/
1336 ce = utrie_get32(mapping, t, NULL);
1337 if (ce < UCOL_SPECIAL_FLAG) {
1338 uprv_uca_setMaxExpansion(ce, 3, maxexpansion, status);
1685 if(element->noOfCEs == 2 // a two CE expansion