Lines Matching refs:csm
42 UCaseMap *csm; in ucasemap_open() local
48 csm=(UCaseMap *)uprv_malloc(sizeof(UCaseMap)); in ucasemap_open()
49 if(csm==NULL) { in ucasemap_open()
52 uprv_memset(csm, 0, sizeof(UCaseMap)); in ucasemap_open()
54 csm->csp=ucase_getSingleton(); in ucasemap_open()
55 ucasemap_setLocale(csm, locale, pErrorCode); in ucasemap_open()
57 uprv_free(csm); in ucasemap_open()
61 csm->options=options; in ucasemap_open()
62 return csm; in ucasemap_open()
66 ucasemap_close(UCaseMap *csm) { in ucasemap_close() argument
67 if(csm!=NULL) { in ucasemap_close()
70 delete reinterpret_cast<BreakIterator *>(csm->iter); in ucasemap_close()
72 uprv_free(csm); in ucasemap_close()
77 ucasemap_getLocale(const UCaseMap *csm) { in ucasemap_getLocale() argument
78 return csm->locale; in ucasemap_getLocale()
82 ucasemap_getOptions(const UCaseMap *csm) { in ucasemap_getOptions() argument
83 return csm->options; in ucasemap_getOptions()
87 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode) { in ucasemap_setLocale() argument
94 length=uloc_getName(locale, csm->locale, (int32_t)sizeof(csm->locale), pErrorCode); in ucasemap_setLocale()
95 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR || length==sizeof(csm->locale)) { in ucasemap_setLocale()
98 length=uloc_getLanguage(locale, csm->locale, (int32_t)sizeof(csm->locale), pErrorCode); in ucasemap_setLocale()
100 if(length==sizeof(csm->locale)) { in ucasemap_setLocale()
103 csm->locCache=0; in ucasemap_setLocale()
105 ucase_getCaseLocale(csm->locale, &csm->locCache); in ucasemap_setLocale()
107 csm->locale[0]=0; in ucasemap_setLocale()
112 ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode * /*pErrorCode*/) { in ucasemap_setOptions() argument
113 csm->options=options; in ucasemap_setOptions()
214 _caseMap(const UCaseMap *csm, UCaseMapFull *map, in _caseMap() argument
224 locCache=csm->locCache; in _caseMap()
240 c=map(csm->csp, c, utf8_caseContextIterator, csc, &s, csm->locale, &locCache); in _caseMap()
258 ucasemap_internalUTF8ToTitle(const UCaseMap *csm, in ucasemap_internalUTF8ToTitle() argument
273 BreakIterator *bi=reinterpret_cast<BreakIterator *>(csm->iter); in ucasemap_internalUTF8ToTitle()
276 int32_t locCache=csm->locCache; in ucasemap_internalUTF8ToTitle()
314 … if((csm->options&U_TITLECASE_NO_BREAK_ADJUSTMENT)==0 && UCASE_NONE==ucase_getType(csm->csp, c)) { in ucasemap_internalUTF8ToTitle()
326 if(UCASE_NONE!=ucase_getType(csm->csp, c)) { in ucasemap_internalUTF8ToTitle()
343 … c=ucase_toFullTitle(csm->csp, c, utf8_caseContextIterator, &csc, &s, csm->locale, &locCache); in ucasemap_internalUTF8ToTitle()
348 ucase_getCaseLocale(csm->locale, &locCache) == UCASE_LOC_DUTCH && in ucasemap_internalUTF8ToTitle()
357 if((csm->options&U_TITLECASE_NO_LOWERCASE)==0) { in ucasemap_internalUTF8ToTitle()
361 csm, ucase_toFullLower, in ucasemap_internalUTF8ToTitle()
390 ucasemap_internalUTF8ToLower(const UCaseMap *csm, in ucasemap_internalUTF8ToLower() argument
398 csm, ucase_toFullLower, in ucasemap_internalUTF8ToLower()
405 ucasemap_internalUTF8ToUpper(const UCaseMap *csm, in ucasemap_internalUTF8ToUpper() argument
413 csm, ucase_toFullUpper, in ucasemap_internalUTF8ToUpper()
458 ucasemap_internalUTF8Fold(const UCaseMap *csm, in ucasemap_internalUTF8Fold() argument
462 return utf8_foldCase(csm->csp, dest, destCapacity, src, srcLength, csm->options, pErrorCode); in ucasemap_internalUTF8Fold()
466 ucasemap_mapUTF8(const UCaseMap *csm, in ucasemap_mapUTF8() argument
500 destLength=stringCaseMapper(csm, dest, destCapacity, src, srcLength, pErrorCode); in ucasemap_mapUTF8()
507 ucasemap_utf8ToLower(const UCaseMap *csm, in ucasemap_utf8ToLower() argument
511 return ucasemap_mapUTF8(csm, in ucasemap_utf8ToLower()
518 ucasemap_utf8ToUpper(const UCaseMap *csm, in ucasemap_utf8ToUpper() argument
522 return ucasemap_mapUTF8(csm, in ucasemap_utf8ToUpper()
529 ucasemap_utf8FoldCase(const UCaseMap *csm, in ucasemap_utf8FoldCase() argument
533 return ucasemap_mapUTF8(csm, in ucasemap_utf8FoldCase()