Lines Matching defs:ce
510 /* found the ce in expansion, we'll just modify the size if it is
825 static uint32_t uprv_uca_addPrefix(tempUCATable *t, uint32_t CE,
847 fprintf(stdout, "El: %08X Pref: ", CE);
912 if(!isPrefix(CE)) {
915 firstContractionOffset = uprv_cnttab_addContraction(contractions, UPRV_CNTTAB_NEWELEMENT, 0, CE, status);
918 uprv_cnttab_addContraction(contractions, firstContractionOffset, 0xFFFF, CE, status);
919 CE = constructContractCE(SPEC_PROC_TAG, firstContractionOffset);
923 int32_t position = uprv_cnttab_findCP(contractions, CE, *element->prefix, status);
925 uint32_t eCE = uprv_cnttab_getCE(contractions, CE, position, status);
927 uprv_cnttab_setContraction(contractions, CE, position, *(element->prefix), newCE, status);
930 uprv_cnttab_insertContraction(contractions, CE, *(element->prefix), element->mapCE, status);
937 return CE;
945 static uint32_t uprv_uca_addContraction(tempUCATable *t, uint32_t CE,
982 if(!isContraction(CE)) {
985 firstContractionOffset = uprv_cnttab_addContraction(contractions, UPRV_CNTTAB_NEWELEMENT, 0, CE, status);
988 uprv_cnttab_addContraction(contractions, firstContractionOffset, 0xFFFF, CE, status);
989 CE = constructContractCE(CONTRACTION_TAG, firstContractionOffset);
993 int32_t position = uprv_cnttab_findCP(contractions, CE, *element->cPoints, status);
995 uint32_t eCE = uprv_cnttab_getCE(contractions, CE, position, status);
997 uprv_cnttab_setContraction(contractions, CE, position, *(element->cPoints), newCE, status);
1000 uprv_cnttab_insertContraction(contractions, CE, *(element->cPoints), newCE, status);
1005 /*ucmpe32_set(t->mapping, cp, CE);*/
1006 utrie_set32(t->mapping, cp, CE);
1007 } else if(!isContraction(CE)) { /* this is just a surrogate, and there is no contraction */
1010 } else { /* fill out the first stage of the contraction with the surrogate CE */
1011 uprv_cnttab_changeContraction(contractions, CE, 0, element->mapCE, status);
1012 uprv_cnttab_changeContraction(contractions, CE, 0xFFFF, element->mapCE, status);
1014 return CE;
1070 uint32_t CE = UCOL_NOT_FOUND;
1087 /*CE = ucmpe32_get(t->mapping, cp);*/
1088 CE = utrie_get32(t->mapping, cp, NULL);
1090 CE = uprv_uca_addContraction(t, CE, element, status);
1092 /*CE = ucmpe32_get(t->mapping, element->cPoints[0]);*/
1093 CE = utrie_get32(t->mapping, element->cPoints[0], NULL);
1095 if( CE != UCOL_NOT_FOUND) {
1096 if(isCntTableElement(CE) /*isContraction(CE)*/) { /* adding a non contraction element (thai, expansion, single) to already existing contraction */
1099 uprv_cnttab_setContraction(t->contractions, CE, 0, 0, element->mapCE, status);
1100 /* This loop has to change the CE at the end of contraction REDO!*/
1101 uprv_cnttab_changeLastCE(t->contractions, CE, element->mapCE, status);
1106 if ((element->prefixSize!=0) && (!isSpecial(CE) || (getCETag(CE)!=IMPLICIT_TAG))) {
1119 origElem->CEs[0]=CE;
1120 origElem->mapCE=CE;
1126 fprintf(stderr, "Warning - trying to overwrite existing data %08X for cp %04X with %08X\n", CE, element->cPoints[0], element->CEs[0]);
1135 return CE;
1147 uint32_t CE;
1170 /* we will construct a special CE that will go unchanged to the table */
1171 if(element->noOfCEs == 2 // a two CE expansion
1227 // Here, we either have one normal CE OR mapCE is set. Therefore, we stuff only
1229 // do numeric collation, we will just pick the CE we have and break out of case
1231 // a special, further processing will occur. If it's a simple CE, we'll return due
1309 CE = element->mapCE;
1311 CE = uprv_uca_finalizeAddition(t, element, status);
1314 return CE;
1332 uint32_t ce;
1335 /*ce = ucmpe32_get(mapping, v);*/
1336 ce = utrie_get32(mapping, v, NULL);
1337 if (ce < UCOL_SPECIAL_FLAG) {
1338 uprv_uca_setMaxExpansion(ce, 2, maxexpansion, status);
1345 /*ce = ucmpe32_get(mapping, t);*/
1346 ce = utrie_get32(mapping, t, NULL);
1347 if (ce < UCOL_SPECIAL_FLAG) {
1348 uprv_uca_setMaxExpansion(ce, 3, maxexpansion, status);
1662 int32_t ce;
1663 while((ce = ucol_next(iter, status)) != UCOL_NULLORDER) {
1664 fprintf(stderr, "%08X ", ce);
1668 while((ce = ucol_next(iter, status)) != UCOL_NULLORDER) {
1669 fprintf(stderr, "%08X ", ce);
1719 if(element->noOfCEs == 2 // a two CE expansion