• Home
  • Raw
  • Download

Lines Matching refs:correctedPOSIXLocale

1706     char *correctedPOSIXLocale = static_cast<char *>(uprv_malloc(uprv_strlen(posixID) + 10 + 1));  local
1707 if (correctedPOSIXLocale == nullptr) {
1710 uprv_strcpy(correctedPOSIXLocale, posixID);
1713 if ((limit = uprv_strchr(correctedPOSIXLocale, '.')) != nullptr) {
1716 if ((limit = uprv_strchr(correctedPOSIXLocale, '@')) != nullptr) {
1720 if ((uprv_strcmp("C", correctedPOSIXLocale) == 0) // no @ variant
1721 || (uprv_strcmp("POSIX", correctedPOSIXLocale) == 0)) {
1724 uprv_strcpy(correctedPOSIXLocale, "en_US_POSIX");
1738 if (uprv_strchr(correctedPOSIXLocale,'_') == nullptr) {
1739 …uprv_strcat(correctedPOSIXLocale, "__"); /* aa@b -> aa__b (note this can make the new locale 1 cha…
1742 uprv_strcat(correctedPOSIXLocale, "_"); /* aa_CC@b -> aa_CC_b */
1748 int32_t len = (int32_t)(uprv_strlen(correctedPOSIXLocale) + (q-p));
1749 uprv_strncat(correctedPOSIXLocale, p, q-p); // do not include charset
1750 correctedPOSIXLocale[len] = 0;
1754 uprv_strcat(correctedPOSIXLocale, p);
1765 gCorrectedPOSIXLocale = correctedPOSIXLocale;
1768 correctedPOSIXLocale = nullptr;
1772 if (correctedPOSIXLocale != nullptr) { /* Was already set - clean up. */
1773 uprv_free(correctedPOSIXLocale);
1781 char *correctedPOSIXLocale = nullptr;
1824 correctedPOSIXLocale = static_cast<char *>(uprv_malloc(POSIX_LOCALE_CAPACITY + 1));
1826 if (correctedPOSIXLocale)
1828 …int32_t posixLen = uloc_canonicalize(modifiedWindowsLocale, correctedPOSIXLocale, POSIX_LOCALE_CAP…
1831 *(correctedPOSIXLocale + posixLen) = 0;
1832 gCorrectedPOSIXLocale = correctedPOSIXLocale;
1838 uprv_free(correctedPOSIXLocale);