• Home
  • Raw
  • Download

Lines Matching refs:correctedPOSIXLocale

1622     char *correctedPOSIXLocale = 0;  local
1640 correctedPOSIXLocale = static_cast<char *>(uprv_malloc(uprv_strlen(posixID)+1));
1642 if (correctedPOSIXLocale == NULL) {
1645 uprv_strncpy(correctedPOSIXLocale, posixID, p-posixID);
1646 correctedPOSIXLocale[p-posixID] = 0;
1649 if ((p = uprv_strchr(correctedPOSIXLocale, '@')) != NULL) {
1650 correctedPOSIXLocale[p-correctedPOSIXLocale] = 0;
1656 if (correctedPOSIXLocale == NULL) {
1657 correctedPOSIXLocale = static_cast<char *>(uprv_malloc(uprv_strlen(posixID)+1));
1659 if (correctedPOSIXLocale == NULL) {
1662 uprv_strncpy(correctedPOSIXLocale, posixID, p-posixID);
1663 correctedPOSIXLocale[p-posixID] = 0;
1673 if (uprv_strchr(correctedPOSIXLocale,'_') == NULL) {
1674 uprv_strcat(correctedPOSIXLocale, "__"); /* aa@b -> aa__b */
1677 uprv_strcat(correctedPOSIXLocale, "_"); /* aa_CC@b -> aa_CC_b */
1682 len = (int32_t)(uprv_strlen(correctedPOSIXLocale) + (q-p));
1683 uprv_strncat(correctedPOSIXLocale, p, q-p);
1684 correctedPOSIXLocale[len] = 0;
1688 uprv_strcat(correctedPOSIXLocale, p);
1699 if (correctedPOSIXLocale != NULL) {
1700 posixID = correctedPOSIXLocale;
1704 correctedPOSIXLocale = (char *)uprv_malloc(uprv_strlen(posixID) + 1);
1706 if (correctedPOSIXLocale == NULL) {
1709 posixID = uprv_strcpy(correctedPOSIXLocale, posixID);
1713 gCorrectedPOSIXLocale = correctedPOSIXLocale;
1716 correctedPOSIXLocale = NULL;
1719 if (correctedPOSIXLocale != NULL) { /* Was already set - clean up. */
1720 uprv_free(correctedPOSIXLocale);
1728 char *correctedPOSIXLocale = 0;
1819 correctedPOSIXLocale = static_cast<char *>(uprv_malloc(POSIX_LOCALE_CAPACITY + 1));
1821 if (correctedPOSIXLocale)
1823 …int32_t posixLen = uloc_canonicalize(modifiedWindowsLocale, correctedPOSIXLocale, POSIX_LOCALE_CAP…
1826 *(correctedPOSIXLocale + posixLen) = 0;
1827 gCorrectedPOSIXLocale = correctedPOSIXLocale;
1833 uprv_free(correctedPOSIXLocale);