Home | History | Annotate | Download | only in common

Lines Matching refs:posixID

1161     const char* posixID;
1265 const char* posixID = NULL;
1285 posixID = setlocale(category, NULL);
1286 if ((posixID == 0)
1287 || (uprv_strcmp("C", posixID) == 0)
1288 || (uprv_strcmp("POSIX", posixID) == 0))
1291 posixID = getenv("LC_ALL");
1292 if (posixID == 0) {
1293 posixID = getenv(category == LC_MESSAGES ? "LC_MESSAGES" : "LC_CTYPE");
1294 if (posixID == 0) {
1295 posixID = getenv("LANG");
1300 if ((posixID==0)
1301 || (uprv_strcmp("C", posixID) == 0)
1302 || (uprv_strcmp("POSIX", posixID) == 0))
1305 posixID = "en_US_POSIX";
1307 return posixID;
1315 static const char* posixID = NULL;
1316 if (posixID == 0) {
1317 posixID = uprv_getPOSIXIDForCategory(LC_MESSAGES);
1319 return posixID;
1327 static const char* posixID = NULL;
1328 if (posixID == 0) {
1329 posixID = uprv_getPOSIXIDForCategory(LC_CTYPE);
1331 return posixID;
1363 const char* posixID = uprv_getPOSIXIDForDefaultLocale();
1378 if ((p = uprv_strchr(posixID, '.')) != NULL) {
1380 correctedPOSIXLocale = uprv_malloc(uprv_strlen(posixID)+1);
1385 uprv_strncpy(correctedPOSIXLocale, posixID, p-posixID);
1386 correctedPOSIXLocale[p-posixID] = 0;
1395 if ((p = uprv_strrchr(posixID, '@')) != NULL) {
1397 correctedPOSIXLocale = uprv_malloc(uprv_strlen(posixID)+1);
1402 uprv_strncpy(correctedPOSIXLocale, posixID, p-posixID);
1403 correctedPOSIXLocale[p-posixID] = 0;
1440 posixID = correctedPOSIXLocale;
1444 correctedPOSIXLocale = (char *)uprv_malloc(uprv_strlen(posixID) + 1);
1449 posixID = uprv_strcpy(correctedPOSIXLocale, posixID);
1462 return posixID;
1482 const char* posixID = 0;
1502 posixID = mac_lc_recs[i].posixID;
1507 return posixID;