Lines Matching refs:UCA
20 * 03/16/2001 weiv Collation framework is rewritten in C and made UCA compliant
54 // static UCA. There is only one. Collators don't use it.
108 /* do not close UCA returned by ucol_initUCA! */
178 const UCollator* UCA = ucol_initUCA(status);
216 if(*status == U_MISSING_RESOURCE_ERROR) { /* We didn't find the tailoring data, we fallback to the UCA */
218 result = ucol_initCollator(UCA->image, result, UCA, status);
222 // if we use UCA, real locale is root
249 if(uprv_memcmp(colData->UCAVersion, UCA->image->UCAVersion, sizeof(UVersionInfo)) != 0 ||
250 uprv_memcmp(colData->UCDVersion, UCA->image->UCDVersion, sizeof(UVersionInfo)) != 0 ||
260 result = ucol_initCollator((const UCATableHeader *)inData, result, UCA, status);
266 result = ucol_initCollator(UCA->image, result, UCA, status);
414 UCollator *UCA = ucol_initUCA(status);
420 ucol_tok_initTokenList(&src, rules, rulesLength, UCA, importFunc, context, status);
448 // set UCA version
449 uprv_memcpy(table->UCAVersion, UCA->image->UCAVersion, sizeof(UVersionInfo));
450 result = ucol_initCollator(table, 0, UCA, status);
461 UCA
462 result = ucol_initCollator(UCA->image, 0, UCA, status);
549 /* take the UCA rules and append real rules at the end */
550 /* UCA rules will be probably coming from the root RB */
558 UResourceBundle* uca = ures_getByKeyWithFallback(cresb, "UCA", NULL, &status);
559 ucaRules = ures_getStringByKey(uca,"Sequence",&UCAlen,&status);
560 ures_close(uca);
631 ucol_tok_initTokenList(&sourceParser, sourceRules, sourceRulesLen, source->UCA, ucol_tok_getRulesFromBundle, NULL, &status);
632 ucol_tok_initTokenList(&targetParser, targetRules, targetRulesLen, target->UCA, ucol_tok_getRulesFromBundle, NULL, &status);
1002 if(coll == NULL || coll->UCA == NULL) {
1023 ucol_tok_initTokenList(&src, rules, rulesLen, coll->UCA, ucol_tok_getRulesFromBundle, NULL, status);
1096 ucol_getLeadBytesForReorderCode(const UCollator *uca, int reorderCode, uint16_t* returnLeadBytes, int returnCapacity) {
1097 uint16_t reorderCodeIndexLength = *((uint16_t*) ((uint8_t *)uca->image + uca->image->scriptToLeadByte));
1098 uint16_t* reorderCodeIndex = (uint16_t*) ((uint8_t *)uca->image + uca->image->scriptToLeadByte + 2 *sizeof(uint16_t));
1134 ucol_getReorderCodesForLeadByte(const UCollator *uca, int leadByte, int16_t* returnReorderCodes, int returnCapacity) {
1135 uint16_t* leadByteTable = ((uint16_t*) ((uint8_t *)uca->image + uca->image->leadByteToScript));
1303 uint16_t leadByteCount = ucol_getLeadBytesForReorderCode(coll->UCA, next, leadBytes, leadBytesSize);