/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/e2fsprogs/intl/ |
D | bindtextdom.c | 176 const char *codeset = *codesetp; in __libc_rwlock_define() local 178 if (codeset == NULL) in __libc_rwlock_define() 180 *codesetp = binding->codeset; in __libc_rwlock_define() 186 char *result = binding->codeset; in __libc_rwlock_define() 187 if (result == NULL || strcmp (codeset, result) != 0) in __libc_rwlock_define() 190 result = strdup (codeset); in __libc_rwlock_define() 192 size_t len = strlen (codeset) + 1; in __libc_rwlock_define() 195 memcpy (result, codeset, len); in __libc_rwlock_define() 200 free (binding->codeset); in __libc_rwlock_define() 202 binding->codeset = result; in __libc_rwlock_define() [all …]
|
D | localcharset.c | 272 const char *codeset; in locale_charset() local 280 codeset = nl_langinfo (CODESET); in locale_charset() 308 codeset = locale; in locale_charset() 318 codeset = buf; in locale_charset() 359 codeset = locale; in locale_charset() 365 codeset = ""; in locale_charset() 369 codeset = buf; in locale_charset() 375 if (codeset == NULL) in locale_charset() 377 codeset = ""; in locale_charset() 383 if (strcmp (codeset, aliases) == 0 in locale_charset() [all …]
|
D | explodename.c | 54 const char **territory, const char **codeset, in _nl_explode_name() argument 64 *codeset = NULL; in _nl_explode_name() 99 *codeset = ++cp; in _nl_explode_name() 106 if (*codeset != cp && (*codeset)[0] != '\0') in _nl_explode_name() 108 *normalized_codeset = _nl_normalize_codeset (*codeset, in _nl_explode_name() 109 cp - *codeset); in _nl_explode_name() 110 if (strcmp (*codeset, *normalized_codeset) == 0) in _nl_explode_name() 177 if (*codeset != NULL && (*codeset)[0] == '\0') in _nl_explode_name()
|
D | l10nflist.c | 173 const char *codeset, const char *normalized_codeset, in _nl_make_l10nflist() argument 197 ? strlen (codeset) + 1 : 0) in _nl_make_l10nflist() 236 cp = stpcpy (cp, codeset); in _nl_make_l10nflist() 348 cnt, language, territory, codeset, in _nl_make_l10nflist() 355 cnt, language, territory, codeset, in _nl_make_l10nflist() 369 _nl_normalize_codeset (const char *codeset, size_t name_len) in _nl_normalize_codeset() argument 378 if (isalnum ((unsigned char) codeset[cnt])) in _nl_normalize_codeset() 382 if (isalpha ((unsigned char) codeset[cnt])) in _nl_normalize_codeset() 396 if (isalpha ((unsigned char) codeset[cnt])) in _nl_normalize_codeset() 397 *wp++ = tolower ((unsigned char) codeset[cnt]); in _nl_normalize_codeset() [all …]
|
D | loadinfo.h | 84 extern const char *_nl_normalize_codeset (const char *codeset, 105 const char *codeset, const char *normalized_codeset, 135 const char **codeset,
|
D | finddomain.c | 57 const char *codeset; in _nl_find_domain() local 138 &codeset, &normalized_codeset, &special, in _nl_find_domain() 145 codeset, normalized_codeset, modifier, special, 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);
|
/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/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/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/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/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 | 696 char *domain,*codeset; in PyIntl_bind_textdomain_codeset() local 697 if (!PyArg_ParseTuple(args, "sz", &domain, &codeset)) in PyIntl_bind_textdomain_codeset() 699 codeset = bind_textdomain_codeset(domain, codeset); in PyIntl_bind_textdomain_codeset() 700 if (codeset) { in PyIntl_bind_textdomain_codeset() 701 return PyUnicode_DecodeLocale(codeset, NULL); in PyIntl_bind_textdomain_codeset()
|