Lines Matching refs:correctedPOSIXLocale
1505 char *correctedPOSIXLocale = 0;
1523 correctedPOSIXLocale = static_cast<char *>(uprv_malloc(uprv_strlen(posixID)+1));
1525 if (correctedPOSIXLocale == NULL) {
1528 uprv_strncpy(correctedPOSIXLocale, posixID, p-posixID);
1529 correctedPOSIXLocale[p-posixID] = 0;
1532 if ((p = uprv_strchr(correctedPOSIXLocale, '@')) != NULL) {
1533 correctedPOSIXLocale[p-correctedPOSIXLocale] = 0;
1539 if (correctedPOSIXLocale == NULL) {
1540 correctedPOSIXLocale = static_cast<char *>(uprv_malloc(uprv_strlen(posixID)+1));
1542 if (correctedPOSIXLocale == NULL) {
1545 uprv_strncpy(correctedPOSIXLocale, posixID, p-posixID);
1546 correctedPOSIXLocale[p-posixID] = 0;
1556 if (uprv_strchr(correctedPOSIXLocale,'_') == NULL) {
1557 uprv_strcat(correctedPOSIXLocale, "__"); /* aa@b -> aa__b */
1560 uprv_strcat(correctedPOSIXLocale, "_"); /* aa_CC@b -> aa_CC_b */
1565 len = (int32_t)(uprv_strlen(correctedPOSIXLocale) + (q-p));
1566 uprv_strncat(correctedPOSIXLocale, p, q-p);
1567 correctedPOSIXLocale[len] = 0;
1571 uprv_strcat(correctedPOSIXLocale, p);
1582 if (correctedPOSIXLocale != NULL) {
1583 posixID = correctedPOSIXLocale;
1587 correctedPOSIXLocale = (char *)uprv_malloc(uprv_strlen(posixID) + 1);
1589 if (correctedPOSIXLocale == NULL) {
1592 posixID = uprv_strcpy(correctedPOSIXLocale, posixID);
1596 gCorrectedPOSIXLocale = correctedPOSIXLocale;
1598 correctedPOSIXLocale = NULL;
1601 if (correctedPOSIXLocale != NULL) { /* Was already set - clean up. */
1602 uprv_free(correctedPOSIXLocale);