• Home
  • Raw
  • Download

Lines Matching refs:correctedPOSIXLocale

1636     char *correctedPOSIXLocale = 0;  local
1654 correctedPOSIXLocale = static_cast<char *>(uprv_malloc(uprv_strlen(posixID)+1));
1656 if (correctedPOSIXLocale == NULL) {
1659 uprv_strncpy(correctedPOSIXLocale, posixID, p-posixID);
1660 correctedPOSIXLocale[p-posixID] = 0;
1663 if ((p = uprv_strchr(correctedPOSIXLocale, '@')) != NULL) {
1664 correctedPOSIXLocale[p-correctedPOSIXLocale] = 0;
1670 if (correctedPOSIXLocale == NULL) {
1672 correctedPOSIXLocale = static_cast<char *>(uprv_malloc(uprv_strlen(posixID)+2));
1674 if (correctedPOSIXLocale == NULL) {
1677 uprv_strncpy(correctedPOSIXLocale, posixID, p-posixID);
1678 correctedPOSIXLocale[p-posixID] = 0;
1688 if (uprv_strchr(correctedPOSIXLocale,'_') == NULL) {
1689 …uprv_strcat(correctedPOSIXLocale, "__"); /* aa@b -> aa__b (note this can make the new locale 1 cha…
1692 uprv_strcat(correctedPOSIXLocale, "_"); /* aa_CC@b -> aa_CC_b */
1697 len = (int32_t)(uprv_strlen(correctedPOSIXLocale) + (q-p));
1698 uprv_strncat(correctedPOSIXLocale, p, q-p);
1699 correctedPOSIXLocale[len] = 0;
1703 uprv_strcat(correctedPOSIXLocale, p);
1714 if (correctedPOSIXLocale != NULL) {
1715 posixID = correctedPOSIXLocale;
1719 correctedPOSIXLocale = (char *)uprv_malloc(uprv_strlen(posixID) + 1);
1721 if (correctedPOSIXLocale == NULL) {
1724 posixID = uprv_strcpy(correctedPOSIXLocale, posixID);
1728 gCorrectedPOSIXLocale = correctedPOSIXLocale;
1731 correctedPOSIXLocale = NULL;
1734 if (correctedPOSIXLocale != NULL) { /* Was already set - clean up. */
1735 uprv_free(correctedPOSIXLocale);
1743 char *correctedPOSIXLocale = nullptr;
1786 correctedPOSIXLocale = static_cast<char *>(uprv_malloc(POSIX_LOCALE_CAPACITY + 1));
1788 if (correctedPOSIXLocale)
1790 …int32_t posixLen = uloc_canonicalize(modifiedWindowsLocale, correctedPOSIXLocale, POSIX_LOCALE_CAP…
1793 *(correctedPOSIXLocale + posixLen) = 0;
1794 gCorrectedPOSIXLocale = correctedPOSIXLocale;
1800 uprv_free(correctedPOSIXLocale);