Home | History | Annotate | Download | only in i18n

Lines Matching defs:UCA

20 * 03/16/2001  weiv      Collation framework is rewritten in C and made UCA compliant
55 // static UCA. There is only one. Collators don't use it.
101 // we used to check that the UCA data version (pInfo->dataVersion)
137 /* do not close UCA returned by ucol_initUCA! */
171 const UCollator* UCA = ucol_initUCA(status);
209 if(*status == U_MISSING_RESOURCE_ERROR) { /* We didn't find the tailoring data, we fallback to the UCA */
211 result = ucol_initCollator(UCA->image, result, UCA, status);
215 // if we use UCA, real locale is root
242 if(uprv_memcmp(colData->UCAVersion, UCA->image->UCAVersion, sizeof(UVersionInfo)) != 0 ||
243 uprv_memcmp(colData->UCDVersion, UCA->image->UCDVersion, sizeof(UVersionInfo)) != 0 ||
253 result = ucol_initCollator((const UCATableHeader *)inData, result, UCA, status);
259 result = ucol_initCollator(UCA->image, result, UCA, status);
407 UCollator *UCA = ucol_initUCA(status);
413 ucol_tok_initTokenList(&src, rules, rulesLength, UCA, importFunc, context, status);
441 // set UCA version
442 uprv_memcpy(table->UCAVersion, UCA->image->UCAVersion, sizeof(UVersionInfo));
443 result = ucol_initCollator(table, 0, UCA, status);
454 // We will init the collator from UCA
455 result = ucol_initCollator(UCA->image, 0, UCA, status);
542 /* take the UCA rules and append real rules at the end */
543 /* UCA rules will be probably coming from the root RB */
551 UResourceBundle* uca = ures_getByKeyWithFallback(cresb, "UCA", NULL, &status);
552 ucaRules = ures_getStringByKey(uca,"Sequence",&UCAlen,&status);
553 ures_close(uca);
624 ucol_tok_initTokenList(&sourceParser, sourceRules, sourceRulesLen, source->UCA, ucol_tok_getRulesFromBundle, NULL, &status);
625 ucol_tok_initTokenList(&targetParser, targetRules, targetRulesLen, target->UCA, ucol_tok_getRulesFromBundle, NULL, &status);
995 if(coll == NULL || coll->UCA == NULL) {
1016 ucol_tok_initTokenList(&src, rules, rulesLen, coll->UCA, ucol_tok_getRulesFromBundle, NULL, status);
1092 ucol_getLeadBytesForReorderCode(const UCollator *uca, int reorderCode, uint16_t* returnLeadBytes, int returnCapacity) {
1093 uint16_t reorderCodeIndexLength = *((uint16_t*) ((uint8_t *)uca->image + uca->image->scriptToLeadByte));
1094 uint16_t* reorderCodeIndex = (uint16_t*) ((uint8_t *)uca->image + uca->image->scriptToLeadByte + 2 *sizeof(uint16_t));
1130 ucol_getReorderCodesForLeadByte(const UCollator *uca, int leadByte, int16_t* returnReorderCodes, int returnCapacity) {
1131 uint16_t* leadByteTable = ((uint16_t*) ((uint8_t *)uca->image + uca->image->leadByteToScript));
1300 uint16_t leadByteCount = ucol_getLeadBytesForReorderCode(coll->UCA, next, leadBytes, leadBytesSize);