Home
last modified time | relevance | path

Searched refs:codeset (Results 1 – 25 of 92) sorted by relevance

1234

/external/e2fsprogs/intl/
Dbindtextdom.c176 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 …]
Dlocalcharset.c272 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 …]
Dexplodename.c54 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()
Dl10nflist.c173 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 …]
Dloadinfo.h84 extern const char *_nl_normalize_codeset (const char *codeset,
105 const char *codeset, const char *normalized_codeset,
135 const char **codeset,
Dfinddomain.c57 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()
Dintl-compat.c128 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()
/external/oj-libjdwp/src/solaris/npt/
Dutf_md.c44 char *codeset; in utfInitialize() local
54 codeset = (char*)nl_langinfo(CODESET); in utfInitialize()
55 if ( codeset == NULL || codeset[0] == 0 ) { in utfInitialize()
60 if (strcmp(codeset, "UTF-8") == 0 || strcmp(codeset, "utf8") == 0 ) { in utfInitialize()
65 ui->iconvToPlatform = iconv_open(codeset, "UTF-8"); in utfInitialize()
69 ui->iconvFromPlatform = iconv_open("UTF-8", codeset); in utfInitialize()
/external/python/cpython3/Lib/
Dgettext.py227 codeset = loc[pos:]
231 codeset = ''
245 if i & COMPONENT_CODESET: val += codeset
515 class_=None, fallback=False, codeset=None): argument
541 if codeset:
542 t.set_output_charset(codeset)
550 def install(domain, localedir=None, codeset=None, names=None): argument
551 t = translation(domain, localedir, fallback=True, codeset=codeset)
578 def bind_textdomain_codeset(domain, codeset=None): argument
580 if codeset is not None:
[all …]
/external/cldr/tools/java/org/unicode/cldr/posix/
DGenerateCharmap.java51 String codeset = options[CHARSET].value; in main() local
53 Charset.forName(codeset), codeset); in main()
54 …riter out = FileUtilities.openUTF8Writer(options[DESTDIR].value + File.separator, codeset + ".cm"); in main()
80 String codeset; field in GenerateCharmap
82 public GenerateCharmap(UnicodeSet chars, Charset cs, String codeset) { in GenerateCharmap() argument
89 this.codeset = codeset; in GenerateCharmap()
98 out.println("# charset:\t" + codeset); in write()
156 out.print(codeset); in doCharmap()
DPOSIXLocale.java35 String codeset; field in POSIXLocale
44 …public POSIXLocale(String locale_name, UnicodeSet repertoire, Charset cs, String codeset, UnicodeS… in POSIXLocale() argument
48 this.codeset = codeset; in POSIXLocale()
59 …if (repertoire.isEmpty() && codeset.equals("UTF-8")) // Generate default repertoire set from exemp… in POSIXLocale()
100 } else if (!codeset.equals("UTF-8")) { in POSIXLocale()
114 lc_collate = new POSIX_LCCollate(doc, repertoire, collrules, collateset, codeset, variant); in POSIXLocale()
116 if (codeset.equals("UTF-8")) { in POSIXLocale()
161 out.println("* Locale Name : " + locale_name + " Codeset : " + codeset); in write()
DGeneratePOSIX.java59 String codeset = options[CHARSET].value; in main() local
72 …if ((!codeset.equals("UTF-8")) && (options[COLLATESET].doesOccur || options[UNICODESET].doesOccur)… in main()
78 …IXLocale pl = new POSIXLocale(locale, repertoire, Charset.forName(options[CHARSET].value), codeset, in main()
81 + "." + codeset + ".src"); in main()
/external/libexif/test/nls/
DMakefile.am3 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
Dtest-nls.c72 const char *codeset = bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); in main() local
73 printf("message codeset: %s\n", codeset); in main()
/external/python/cpython2/Lib/
Dgettext.py222 codeset = locale[pos:]
226 codeset = ''
240 if i & COMPONENT_CODESET: val += codeset
538 class_=None, fallback=False, codeset=None): argument
559 if codeset:
560 t.set_output_charset(codeset)
568 def install(domain, localedir=None, unicode=False, codeset=None, names=None): argument
569 t = translation(domain, localedir, fallback=True, codeset=codeset)
596 def bind_textdomain_codeset(domain, codeset=None): argument
598 if codeset is not None:
[all …]
/external/tcpdump/
Dprint-fr.c796 u_int codeset = 0; in q933_print() local
851 unshift_codeset = codeset; in q933_print()
870 codeset = IE_SHIFT_CODESET(iecode); in q933_print()
883 if (codeset == 5) { in q933_print()
906 ND_PRINT((ndo, "%s, codeset %u", is_ansi ? "ANSI" : "CCITT", codeset)); in q933_print()
947 codeset = unshift_codeset; in q933_print()
985 unshift_codeset = codeset; in q933_print()
991 codeset = IE_SHIFT_CODESET(iecode); in q933_print()
1012 tok2str(fr_q933_ie_codesets[codeset], in q933_print()
1030 if (fr_q933_print_ie_codeset[codeset] != NULL) { in q933_print()
[all …]
/external/python/cpython2/Modules/
D_localemodule.c644 char *domain,*codeset; in PyIntl_bind_textdomain_codeset() local
645 if (!PyArg_ParseTuple(args, "sz", &domain, &codeset)) in PyIntl_bind_textdomain_codeset()
647 codeset = bind_textdomain_codeset(domain, codeset); in PyIntl_bind_textdomain_codeset()
648 if (codeset) in PyIntl_bind_textdomain_codeset()
649 return PyString_FromString(codeset); in PyIntl_bind_textdomain_codeset()
/external/python/cpython3/Modules/
D_localemodule.c664 char *domain,*codeset; in PyIntl_bind_textdomain_codeset() local
665 if (!PyArg_ParseTuple(args, "sz", &domain, &codeset)) in PyIntl_bind_textdomain_codeset()
667 codeset = bind_textdomain_codeset(domain, codeset); in PyIntl_bind_textdomain_codeset()
668 if (codeset) { in PyIntl_bind_textdomain_codeset()
669 return PyUnicode_DecodeLocale(codeset, NULL); in PyIntl_bind_textdomain_codeset()
/external/python/cpython3/Python/
Dfileutils.c61 char *codeset = nl_langinfo(CODESET); in _Py_device_encoding() local
62 if (codeset != NULL && codeset[0] != 0) in _Py_device_encoding()
63 return PyUnicode_FromString(codeset); in _Py_device_encoding()
105 char *codeset, **alias; in check_force_ascii() local
137 codeset = nl_langinfo(CODESET); in check_force_ascii()
138 if (!codeset || codeset[0] == '\0') { in check_force_ascii()
142 if (!_Py_normalize_encoding(codeset, encoding, sizeof(encoding))) in check_force_ascii()
Dpylifecycle.c273 char* codeset = nl_langinfo(CODESET); in get_locale_encoding() local
274 if (!codeset || codeset[0] == '\0') { in get_locale_encoding()
278 return get_codec_name(codeset); in get_locale_encoding()
496 char *codeset = nl_langinfo(CODESET); in _Py_CoerceLegacyLocale() local
497 if (!codeset || *codeset == '\0') { in _Py_CoerceLegacyLocale()
/external/tcpdump/tests/
Dheapoverflow-q933_printq.out1 Q.933, CCITT, codeset 0, unknown message (0x30), length 808464430
/external/elfutils/m4/
DMakefile.am21 EXTRA_DIST = codeset.m4 gettext.m4 iconv.m4 lcmessage.m4 progtest.m4 zip.m4
/external/clang/test/CodeGenObjC/
Dillegal-UTF8.m6 …g {{input conversion stopped due to an input byte that does not belong to the input codeset UTF-8}}
/external/python/cpython2/Doc/library/
Dgettext.rst48 .. function:: bind_textdomain_codeset(domain[, codeset])
50 Bind the *domain* to *codeset*, changing the encoding of strings returned by the
51 :func:`gettext` family of functions. If *codeset* is omitted, then the current
185 .. function:: translation(domain[, localedir[, languages[, class_[, fallback[, codeset]]]]])
192 file object argument. If provided, *codeset* will change the charset used to
205 Added the *codeset* parameter.
208 .. function:: install(domain[, localedir[, unicode [, codeset[, names]]]])
211 *domain*, *localedir*, and *codeset* which are passed to the function
229 Added the *codeset* parameter.
716 :func:`gettext`, which returns strings encoded with the same codeset used in the
[all …]
/external/python/cpython2/Python/
Dpythonrun.c170 char *codeset = NULL; in Py_InitializeEx() local
294 p = icodeset = codeset = strdup(p); in Py_InitializeEx()
335 codeset = icodeset = loc_codeset; in Py_InitializeEx()
352 codeset = buf; in Py_InitializeEx()
358 if (codeset) { in Py_InitializeEx()
369 if (!PyFile_SetEncodingAndErrors(sys_stream, codeset, errors)) in Py_InitializeEx()
376 if (!PyFile_SetEncodingAndErrors(sys_stream, codeset, errors)) in Py_InitializeEx()
381 free(codeset); in Py_InitializeEx()

1234