Lines Matching refs:locale
14 * Locale-sensitive case mapping functions (ones that call uloc_getDefault())
26 ustrcase_setTempCaseMapLocale(UCaseMap *csm, const char *locale) {
42 /* the internal functions require locale!=NULL */
43 if(locale==NULL) {
45 // changes to the default locale via uloc_setDefault().
47 // does not cache the locale ID.
51 // and we do not need the locale ID to be canonicalized.
53 // Best is to not call case mapping functions with a NULL locale ID.
54 locale=uloc_getDefault();
56 for(i=0; i<4 && (c=locale[i])!=0 && c!='-' && c!='_'; ++i) {
57 csm->locale[i]=c;
60 csm->locale[i]=0; /* Up to 3 non-separator characters. */
62 csm->locale[0]=0; /* Longer-than-3 initial subtag: Ignore. */
71 setTempCaseMap(UCaseMap *csm, const char *locale) {
75 if(locale!=NULL && locale[0]==0) {
76 csm->locale[0]=0;
78 ustrcase_setTempCaseMapLocale(csm, locale);
87 const char *locale,
90 setTempCaseMap(&csm, locale);
101 const char *locale,
104 setTempCaseMap(&csm, locale);