/third_party/gettext/gettext-runtime/intl/ |
D | localcharset.c | 833 const char *codeset; in locale_charset() local 847 codeset = nl_langinfo (CODESET); in locale_charset() 853 if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0) in locale_charset() 906 codeset = resultbuf; in locale_charset() 911 if (codeset == NULL) in locale_charset() 913 codeset = ""; in locale_charset() 944 codeset = "UTF-8"; in locale_charset() 948 codeset = resultbuf; in locale_charset() 958 codeset = NULL; in locale_charset() 994 codeset = ""; in locale_charset() [all …]
|
D | explodename.c | 56 const char **territory, const char **codeset, in _nl_explode_name() argument 64 *codeset = NULL; in _nl_explode_name() 95 *codeset = ++cp; in _nl_explode_name() 102 if (*codeset != cp && (*codeset)[0] != '\0') in _nl_explode_name() 104 *normalized_codeset = _nl_normalize_codeset (*codeset, in _nl_explode_name() 105 cp - *codeset); in _nl_explode_name() 108 else if (strcmp (*codeset, *normalized_codeset) == 0) in _nl_explode_name() 129 if (*codeset != NULL && (*codeset)[0] == '\0') in _nl_explode_name()
|
D | bindtextdom.c | 202 const char *codeset = *codesetp; in gl_rwlock_define() local 204 if (codeset == NULL) in gl_rwlock_define() 206 *codesetp = binding->codeset; in gl_rwlock_define() 212 char *result = binding->codeset; in gl_rwlock_define() 213 if (result == NULL || strcmp (codeset, result) != 0) in gl_rwlock_define() 216 result = strdup (codeset); in gl_rwlock_define() 218 size_t len = strlen (codeset) + 1; in gl_rwlock_define() 221 memcpy (result, codeset, len); in gl_rwlock_define() 226 free (binding->codeset); in gl_rwlock_define() 228 binding->codeset = result; in gl_rwlock_define() [all …]
|
D | l10nflist.c | 96 const char *codeset, const char *normalized_codeset, in _nl_make_l10nflist() argument 126 ? strlen (codeset) + 1 : 0) in _nl_make_l10nflist() 161 cp = stpcpy (cp, codeset); in _nl_make_l10nflist() 323 cnt, language, territory, codeset, in _nl_make_l10nflist() 335 cnt, language, territory, codeset, in _nl_make_l10nflist() 348 _nl_normalize_codeset (const char *codeset, size_t name_len) in _nl_normalize_codeset() argument 357 if (isalnum ((unsigned char) codeset[cnt])) in _nl_normalize_codeset() 361 if (isalpha ((unsigned char) codeset[cnt])) in _nl_normalize_codeset() 375 if (isalpha ((unsigned char) codeset[cnt])) in _nl_normalize_codeset() 376 *wp++ = tolower ((unsigned char) codeset[cnt]); in _nl_normalize_codeset() [all …]
|
D | loadinfo.h | 82 extern const char *_nl_normalize_codeset (const char *codeset, 118 const char *codeset, const char *normalized_codeset, 145 const char **codeset,
|
D | finddomain.c | 73 const char *codeset; in _nl_find_domain() local 156 &codeset, &normalized_codeset); in _nl_find_domain() 174 codeset, normalized_codeset, modifier, in _nl_find_domain()
|
D | intl-compat.c | 128 bind_textdomain_codeset (const char *domainname, const char *codeset) in bind_textdomain_codeset() argument 130 return libintl_bind_textdomain_codeset (domainname, codeset); in bind_textdomain_codeset()
|
/third_party/glib/glib/libcharset/ |
D | localcharset.c | 282 const char *codeset; in _g_locale_charset_raw() local 289 codeset = nl_langinfo (CODESET); in _g_locale_charset_raw() 296 if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0) in _g_locale_charset_raw() 334 codeset = buf; in _g_locale_charset_raw() 364 codeset = locale; in _g_locale_charset_raw() 374 codeset = buf; in _g_locale_charset_raw() 415 codeset = locale; in _g_locale_charset_raw() 421 codeset = ""; in _g_locale_charset_raw() 425 codeset = buf; in _g_locale_charset_raw() 431 return codeset; in _g_locale_charset_raw() [all …]
|
D | libcharset-glib.patch | 26 const char *codeset; 35 + return codeset; 39 +_g_locale_charset_unalias (const char *codeset) 43 if (codeset == NULL) 45 codeset = ""; 52 if (strcmp (codeset, aliases) == 0 73 +extern const char * _g_locale_charset_unalias (const char *codeset);
|
D | localcharset.h | 35 extern const char * _g_locale_charset_unalias (const char *codeset);
|
D | update.sh | 25 for i in codeset.m4 glibc21.m4 ; do
|
D | make-patch.sh | 23 for i in glibc21.m4 codeset.m4 ; do
|
/third_party/popt/src/ |
D | poptint.c | 48 char * codeset = NULL; in POPT_dgettext() local 53 codeset = bind_textdomain_codeset(dom, NULL); in POPT_dgettext() 56 bind_textdomain_codeset(dom, codeset); in POPT_dgettext() 71 char * codeset = NULL; in strdup_locale_from_utf8() local 79 codeset = nl_langinfo ((nl_item)CODESET); in strdup_locale_from_utf8() 82 if (codeset != NULL && strcmp(codeset, "UTF-8") != 0 in strdup_locale_from_utf8() 83 && (cd = iconv_open(codeset, "UTF-8")) != (iconv_t)-1) in strdup_locale_from_utf8()
|
/third_party/python/Lib/ |
D | gettext.py | 228 codeset = loc[pos:] 232 codeset = '' 246 if i & COMPONENT_CODESET: val += codeset 584 class_=None, fallback=False, codeset=_unspecified): argument 610 if codeset is not _unspecified: 614 if codeset: 618 t.set_output_charset(codeset) 626 def install(domain, localedir=None, codeset=_unspecified, names=None): argument 627 t = translation(domain, localedir, fallback=True, codeset=codeset) 654 def bind_textdomain_codeset(domain, codeset=None): argument [all …]
|
/third_party/libexif/test/nls/ |
D | Makefile.am | 3 codeset_tests = test-codeset-default test-codeset-latin1 test-codeset-utf-8 30 EXTRA_DIST = check-localedir.in check-nls.in test-nls.c test-codeset.c
|
D | test-nls.c | 72 const char *codeset = bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); in main() local 73 printf("message codeset: %s\n", codeset); in main()
|
/third_party/musl/src/locale/ |
D | bind_textdomain_codeset.c | 6 char *bind_textdomain_codeset(const char *domainname, const char *codeset) in bind_textdomain_codeset() argument 8 if (codeset && strcasecmp(codeset, "UTF-8")) in bind_textdomain_codeset()
|
/third_party/python/Modules/clinic/ |
D | _localemodule.c.h | 497 const char *codeset); 504 const char *codeset; in _locale_bind_textdomain_codeset() local 523 codeset = NULL; in _locale_bind_textdomain_codeset() 527 codeset = PyUnicode_AsUTF8AndSize(args[1], &codeset_length); in _locale_bind_textdomain_codeset() 528 if (codeset == NULL) { in _locale_bind_textdomain_codeset() 531 if (strlen(codeset) != (size_t)codeset_length) { in _locale_bind_textdomain_codeset() 540 return_value = _locale_bind_textdomain_codeset_impl(module, domain, codeset); in _locale_bind_textdomain_codeset()
|
/third_party/gettext/gettext-tools/tests/ |
D | intl-3-prg.c | 40 const char *codeset = argv[3]; in main() local 54 bind_textdomain_codeset ("tstprog", codeset); in main()
|
/third_party/glib/glib/ |
D | gcharset.c | 448 gchar **codeset, in explode_locale() argument 472 *codeset = g_strndup (dot_pos, at_pos - dot_pos); in explode_locale() 508 gchar *codeset = NULL; in append_locale_variants() local 516 mask = explode_locale (locale, &language, &territory, &codeset, &modifier); in append_locale_variants() 529 (i & COMPONENT_CODESET) ? codeset : "", in append_locale_variants() 538 g_free (codeset); in append_locale_variants()
|
D | gtranslit.c | 213 const gchar *codeset; in lookup_item_id_for_locale() local 216 codeset = next_char; in lookup_item_id_for_locale() 217 codeset_len = strcspn (codeset + 1, "_.@") + 1; in lookup_item_id_for_locale() 218 next_char = codeset + codeset_len; in lookup_item_id_for_locale()
|
/third_party/python/Modules/ |
D | _localemodule.c | 761 const char *codeset) in _locale_bind_textdomain_codeset_impl() argument 764 codeset = bind_textdomain_codeset(domain, codeset); in _locale_bind_textdomain_codeset_impl() 765 if (codeset) { in _locale_bind_textdomain_codeset_impl() 766 return PyUnicode_DecodeLocale(codeset, NULL); in _locale_bind_textdomain_codeset_impl()
|
/third_party/libexif/m4m/ |
D | .gitignore | 4 codeset.m4
|
/third_party/pulseaudio/m4/ |
D | .gitignore | 1 codeset.m4
|
/third_party/python/Python/ |
D | fileutils.c | 203 const char *codeset = nl_langinfo(CODESET); in check_force_ascii() local 204 if (!codeset || codeset[0] == '\0') { in check_force_ascii() 210 if (!_Py_normalize_encoding(codeset, encoding, sizeof(encoding))) { in check_force_ascii() 945 char* codeset = nl_langinfo(CODESET); in _Py_LocaleUsesNonUnicodeWchar() local 946 if (!codeset) { in _Py_LocaleUsesNonUnicodeWchar() 950 return (strcmp(codeset, "UTF-8") != 0 && strcmp(codeset, "646") != 0); in _Py_LocaleUsesNonUnicodeWchar()
|