Lines Matching refs:coll
47 RuleBasedCollator *coll = new RuleBasedCollator( in ucol_openBinary() local
51 if(coll == NULL) { in ucol_openBinary()
56 delete coll; in ucol_openBinary()
59 return coll->toUCollator(); in ucol_openBinary()
63 ucol_cloneBinary(const UCollator *coll, in ucol_cloneBinary() argument
70 const RuleBasedCollator *rbc = RuleBasedCollator::rbcFromUCollator(coll); in ucol_cloneBinary()
71 if(rbc == NULL && coll != NULL) { in ucol_cloneBinary()
79 ucol_safeClone(const UCollator *coll, void * /*stackBuffer*/, int32_t * pBufferSize, UErrorCode *st… in ucol_safeClone() argument
84 if (coll == NULL) { in ucol_safeClone()
95 Collator *newColl = Collator::fromUCollator(coll)->clone(); in ucol_safeClone()
105 ucol_close(UCollator *coll) in ucol_close() argument
108 UTRACE_DATA1(UTRACE_INFO, "coll = %p", coll); in ucol_close()
109 if(coll != NULL) { in ucol_close()
110 delete Collator::fromUCollator(coll); in ucol_close()
191 ucol_getSortKey(const UCollator *coll, in ucol_getSortKey() argument
199 UTRACE_DATA3(UTRACE_VERBOSE, "coll=%p, source string = %vh ", coll, source, in ucol_getSortKey()
203 int32_t keySize = Collator::fromUCollator(coll)-> in ucol_getSortKey()
212 ucol_nextSortKeyPart(const UCollator *coll, in ucol_nextSortKeyPart() argument
224 coll, iter, state[0], state[1], dest, count); in ucol_nextSortKeyPart()
226 int32_t i = Collator::fromUCollator(coll)-> in ucol_nextSortKeyPart()
305 ucol_setMaxVariable(UCollator *coll, UColReorderCode group, UErrorCode *pErrorCode) { in ucol_setMaxVariable() argument
307 Collator::fromUCollator(coll)->setMaxVariable(group, *pErrorCode); in ucol_setMaxVariable()
311 ucol_getMaxVariable(const UCollator *coll) { in ucol_getMaxVariable() argument
312 return Collator::fromUCollator(coll)->getMaxVariable(); in ucol_getMaxVariable()
316 ucol_setVariableTop(UCollator *coll, const UChar *varTop, int32_t len, UErrorCode *status) { in ucol_setVariableTop() argument
317 if(U_FAILURE(*status) || coll == NULL) { in ucol_setVariableTop()
320 return Collator::fromUCollator(coll)->setVariableTop(varTop, len, *status); in ucol_setVariableTop()
323 U_CAPI uint32_t U_EXPORT2 ucol_getVariableTop(const UCollator *coll, UErrorCode *status) { in ucol_getVariableTop() argument
324 if(U_FAILURE(*status) || coll == NULL) { in ucol_getVariableTop()
327 return Collator::fromUCollator(coll)->getVariableTop(*status); in ucol_getVariableTop()
331 ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status) { in ucol_restoreVariableTop() argument
332 if(U_FAILURE(*status) || coll == NULL) { in ucol_restoreVariableTop()
335 Collator::fromUCollator(coll)->setVariableTop(varTop, *status); in ucol_restoreVariableTop()
339 ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status… in ucol_setAttribute() argument
340 if(U_FAILURE(*status) || coll == NULL) { in ucol_setAttribute()
344 Collator::fromUCollator(coll)->setAttribute(attr, value, *status); in ucol_setAttribute()
348 ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status) { in ucol_getAttribute() argument
349 if(U_FAILURE(*status) || coll == NULL) { in ucol_getAttribute()
353 return Collator::fromUCollator(coll)->getAttribute(attr, *status); in ucol_getAttribute()
357 ucol_setStrength( UCollator *coll, in ucol_setStrength() argument
361 ucol_setAttribute(coll, UCOL_STRENGTH, strength, &status); in ucol_setStrength()
365 ucol_getStrength(const UCollator *coll) in ucol_getStrength() argument
368 return ucol_getAttribute(coll, UCOL_STRENGTH, &status); in ucol_getStrength()
372 ucol_getReorderCodes(const UCollator *coll, in ucol_getReorderCodes() argument
380 return Collator::fromUCollator(coll)->getReorderCodes(dest, destCapacity, *status); in ucol_getReorderCodes()
384 ucol_setReorderCodes(UCollator* coll, in ucol_setReorderCodes() argument
392 Collator::fromUCollator(coll)->setReorderCodes(reorderCodes, reorderCodesLength, *status); in ucol_setReorderCodes()
404 ucol_getVersion(const UCollator* coll, in ucol_getVersion() argument
407 Collator::fromUCollator(coll)->getVersion(versionInfo); in ucol_getVersion()
411 ucol_strcollIter( const UCollator *coll, in ucol_strcollIter() argument
421 UTRACE_DATA3(UTRACE_VERBOSE, "coll=%p, sIter=%p, tIter=%p", coll, sIter, tIter); in ucol_strcollIter()
423 if(sIter == NULL || tIter == NULL || coll == NULL) { in ucol_strcollIter()
429 UCollationResult result = Collator::fromUCollator(coll)->compare(*sIter, *tIter, *status); in ucol_strcollIter()
440 ucol_strcoll( const UCollator *coll, in ucol_strcoll() argument
448 UTRACE_DATA3(UTRACE_VERBOSE, "coll=%p, source=%p, target=%p", coll, source, target); in ucol_strcoll()
454 UCollationResult returnVal = Collator::fromUCollator(coll)-> in ucol_strcoll()
462 const UCollator *coll, in ucol_strcollUTF8() argument
471 UTRACE_DATA3(UTRACE_VERBOSE, "coll=%p, source=%p, target=%p", coll, source, target); in ucol_strcollUTF8()
482 UCollationResult returnVal = Collator::fromUCollator(coll)->internalCompareUTF8( in ucol_strcollUTF8()
491 ucol_greater( const UCollator *coll, in ucol_greater() argument
497 return (ucol_strcoll(coll, source, sourceLength, target, targetLength) in ucol_greater()
503 ucol_greaterOrEqual( const UCollator *coll, in ucol_greaterOrEqual() argument
509 return (ucol_strcoll(coll, source, sourceLength, target, targetLength) in ucol_greaterOrEqual()
515 ucol_equal( const UCollator *coll, in ucol_equal() argument
521 return (ucol_strcoll(coll, source, sourceLength, target, targetLength) in ucol_equal()
526 ucol_getUCAVersion(const UCollator* coll, UVersionInfo info) { in ucol_getUCAVersion() argument
527 const Collator *c = Collator::fromUCollator(coll); in ucol_getUCAVersion()
545 ucol_getRules(const UCollator *coll, int32_t *length) { in ucol_getRules() argument
546 const RuleBasedCollator *rbc = RuleBasedCollator::rbcFromUCollator(coll); in ucol_getRules()
548 if(rbc != NULL || coll == NULL) { in ucol_getRules()
560 ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen) { in ucol_getRulesEx() argument
562 const RuleBasedCollator *rbc = RuleBasedCollator::rbcFromUCollator(coll); in ucol_getRulesEx()
563 if(rbc != NULL || coll == NULL) { in ucol_getRulesEx()
575 ucol_getLocale(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status) { in ucol_getLocale() argument
576 return ucol_getLocaleByType(coll, type, status); in ucol_getLocale()
580 ucol_getLocaleByType(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status) { in ucol_getLocaleByType() argument
585 UTRACE_DATA1(UTRACE_INFO, "coll=%p", coll); in ucol_getLocaleByType()
588 const RuleBasedCollator *rbc = RuleBasedCollator::rbcFromUCollator(coll); in ucol_getLocaleByType()
589 if(rbc == NULL && coll != NULL) { in ucol_getLocaleByType()
602 ucol_getTailoredSet(const UCollator *coll, UErrorCode *status) { in ucol_getTailoredSet() argument
606 UnicodeSet *set = Collator::fromUCollator(coll)->getTailoredSet(*status); in ucol_getTailoredSet()