37
42
int rccLocaleGetClassByName(const char *locale) {
38
44
if (!locale) return LC_CTYPE;
40
46
if (!strcmp(locale, "LC_CTYPE")) return LC_CTYPE;
41
49
if (!strcmp(locale, "LC_MESSAGES")) return LC_MESSAGES;
42
52
if (!strcmp(locale, "LC_COLLATE")) return LC_COLLATE;
44
55
if (!strcmp(locale, "LC_ALL")) return LC_ALL;
45
56
if (!strcmp(locale, "LC_NUMERIC")) return LC_NUMERIC;