| /src/tools/tools/locale/tools/ |
| H A D | convert_map.pl | 25 my $utf8; 28 $utf8 = sprintf("\\x%02X", $ucs).$utf8; 30 $utf8 = sprintf("\\x%02X", ($ucs & 0x3f) | 0x80).$utf8; 32 $utf8 = sprintf("\\x%02X", $ucs | 0xc0).$utf8; 35 $utf8 = sprintf("\\x%02X", ($ucs & 0x3f) | 0x80).$utf8; 37 $utf8 = sprintf("\\x%02X", ($ucs & 0x3f) | 0x80).$utf8; 39 $utf8 = sprintf("\\x%02X", $ucs | 0xe0).$utf8; 42 $utf8 = sprintf("\\x%02X", ($ucs & 0x3f) | 0x80).$utf8; 44 $utf8 = sprintf("\\x%02X", ($ucs & 0x3f) | 0x80).$utf8; 46 $utf8 = sprintf("\\x%02X", ($ucs & 0x3f) | 0x80).$utf8; [all …]
|
| /src/crypto/openssl/crypto/x509/ |
| H A D | v3_utf8.c | 29 ASN1_UTF8STRING *utf8) in i2s_ASN1_UTF8STRING() argument 33 if (utf8 == NULL || utf8->length == 0) { in i2s_ASN1_UTF8STRING() 37 if ((tmp = OPENSSL_malloc(utf8->length + 1)) == NULL) in i2s_ASN1_UTF8STRING() 39 memcpy(tmp, utf8->data, utf8->length); in i2s_ASN1_UTF8STRING() 40 tmp[utf8->length] = 0; in i2s_ASN1_UTF8STRING() 47 ASN1_UTF8STRING *utf8; in s2i_ASN1_UTF8STRING() local 52 if ((utf8 = ASN1_UTF8STRING_new()) == NULL) { in s2i_ASN1_UTF8STRING() 56 if (!ASN1_STRING_set((ASN1_STRING *)utf8, str, strlen(str))) { in s2i_ASN1_UTF8STRING() 58 ASN1_UTF8STRING_free(utf8); in s2i_ASN1_UTF8STRING() 62 ebcdic2ascii(utf8->data, utf8->data, utf8->length); in s2i_ASN1_UTF8STRING() [all …]
|
| /src/crypto/krb5/src/util/support/ |
| H A D | t_utf16.c | 47 const char *utf8; member 89 char *utf8; in main() local 93 if (t->utf8 != NULL) { in main() 94 ret = k5_utf8_to_utf16le(t->utf8, &utf16, &utf16len); in main() 106 ret = k5_utf16le_to_utf8((uint8_t *)t->utf16, t->utf16len, &utf8); in main() 107 if (t->utf8 == NULL) { in main() 111 assert(strcmp(t->utf8, utf8) == 0); in main() 112 free(utf8); in main()
|
| H A D | utf8_conv.c | 92 k5_utf8_to_utf16le(const char *utf8, uint8_t **utf16_out, size_t *nbytes_out) in k5_utf8_to_utf16le() argument 106 while (*utf8 != '\0') { in k5_utf8_to_utf16le() 108 chlen = KRB5_UTF8_CHARLEN2(utf8, chlen); in k5_utf8_to_utf16le() 113 ch = (krb5_ucs4)(utf8[0] & mask[chlen]); in k5_utf8_to_utf16le() 117 if ((utf8[i] & 0xc0) != 0x80) in k5_utf8_to_utf16le() 122 ch |= (krb5_ucs4)(utf8[i] & 0x3f); in k5_utf8_to_utf16le() 139 utf8 += chlen; in k5_utf8_to_utf16le()
|
| H A D | Makefile.in | 88 utf8.o \ 118 $(OUTPRE)utf8.$(OBJEXT) \ 148 $(srcdir)/utf8.c \ 257 t_utf8: t_utf8.o utf8.o 258 $(CC_LINK) -o t_utf8 t_utf8.o utf8.o 260 T_UTF16_OBJS= t_utf16.o utf8_conv.o utf8.o k5buf.o zap.o $(PRINTF_ST_OBJ)
|
| H A D | deps | 32 utf8.so utf8.po $(OUTPRE)utf8.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \ 34 $(top_srcdir)/include/k5-utf8.h supp-int.h utf8.c 38 $(top_srcdir)/include/k5-thread.h $(top_srcdir)/include/k5-utf8.h \ 104 $(top_srcdir)/include/k5-utf8.h t_utf8.c 107 $(top_srcdir)/include/k5-utf8.h t_utf16.c
|
| /src/contrib/libarchive/libarchive/test/ |
| H A D | test_archive_string_conversion.c | 253 struct archive_string utf8; in test_archive_string_normalization_nfc() local 273 archive_string_init(&utf8); in test_archive_string_normalization_nfc() 357 &utf8, utf8_nfd, f_sconv8)); in test_archive_string_normalization_nfc() 360 assertEqualUTF8String(utf8_nfc, utf8.s); in test_archive_string_normalization_nfc() 366 &utf8, utf8_nfc, f_sconv8)); in test_archive_string_normalization_nfc() 369 assertEqualUTF8String(utf8_nfc, utf8.s); in test_archive_string_normalization_nfc() 375 &utf8, utf8_nfc, t_sconv8)); in test_archive_string_normalization_nfc() 378 assertEqualUTF8String(utf8_nfc, utf8.s); in test_archive_string_normalization_nfc() 384 &utf8, utf16be_nfd, 100000, f_sconv16be)); in test_archive_string_normalization_nfc() 387 assertEqualUTF8String(utf8_nfc, utf8.s); in test_archive_string_normalization_nfc() [all …]
|
| /src/crypto/krb5/src/lib/crypto/krb/ |
| H A D | s2k_rc4.c | 13 char *utf8; in krb5int_arcfour_string_to_key() local 24 utf8 = k5memdup0(string->data, string->length, &err); in krb5int_arcfour_string_to_key() 25 if (utf8 == NULL) in krb5int_arcfour_string_to_key() 27 err = k5_utf8_to_utf16le(utf8, ©str, ©strlen); in krb5int_arcfour_string_to_key() 28 zapfree(utf8, string->length); in krb5int_arcfour_string_to_key()
|
| /src/crypto/heimdal/lib/wind/ |
| H A D | ChangeLog | 11 * Add utf8 <-> utf16 support. 19 * Support utf8 to utf16 conversion. 87 * utf8.c: Make wind_utf8ucs4_length() work again. 89 * test-utf8.c: Test wind_utf8ucs4_length(). 93 * utf8.c: Fix overaggressive checks, fix comments. 106 * test-utf8.c: spelling 108 * utf8.c: Add wind_ucs4toutf8 112 * test-utf8.c: Add test for wind_ucs4toutf8. 116 * utf8.c (wind_utf8toucs4): allow calculation of length by passing
|
| H A D | NTMakefile | 51 $(OBJ)\utf8.obj 109 $(OBJ)\test-utf8.exe 132 $(OBJ)\test-utf8.exe: $(OBJ)\test-utf8.obj 145 test-utf8.exe
|
| /src/contrib/dialog/package/freebsd/ |
| H A D | pkg-plist | 20 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/checklist-utf8 55 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/editbox-utf8 63 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/form1-utf8 97 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/inputbox6-utf8 114 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/menubox-utf8 130 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/msgbox-utf8 136 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/msgbox4-utf8 144 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/passwordform1-utf8 169 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/setup-utf8 196 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/yesno-utf8
|
| /src/contrib/libfido2/openbsd-compat/ |
| H A D | readpassphrase_win32.c | 55 utf8_to_utf16(const char *utf8) in utf8_to_utf16() argument 59 if ((needed = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, NULL, 0)) == 0 || in utf8_to_utf16() 61 MultiByteToWideChar(CP_UTF8, 0, utf8, -1, utf16, needed) == 0) { in utf8_to_utf16()
|
| /src/usr.sbin/efivar/ |
| H A D | efiutil.c | 76 char *utf8 = NULL; in utf8dump() local 86 ucs2_to_utf8(ucs2, &utf8); in utf8dump() 87 printf("%s\n", utf8); in utf8dump() 88 free(utf8); in utf8dump()
|
| /src/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | ConvertUTF.h | 334 std::error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16); 336 std::error_code CurCPToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16); 338 SmallVectorImpl<char> &utf8); 341 SmallVectorImpl<char> &utf8);
|
| /src/contrib/tzcode/ |
| H A D | workman.sh | 36 binmode STDIN, '\'':encoding(utf8)'\''; 37 binmode STDOUT, '\'':encoding(utf8)'\'';
|
| /src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/ |
| H A D | tst.aggpackbanner.ksh | 64 dtrace -qs /dev/stdin -x encoding=utf8 <<EOF 72 dtrace -qs /dev/stdin -x encoding=utf8 -x aggzoom <<EOF
|
| /src/contrib/expat/lib/ |
| H A D | xmltok.c | 1314 char utf8[256][4]; member 1355 const char *utf8; in unknown_toUtf8() local 1359 utf8 = uenc->utf8[(unsigned char)**fromP]; in unknown_toUtf8() 1360 n = *utf8++; in unknown_toUtf8() 1366 utf8 = buf; in unknown_toUtf8() 1374 memcpy(*toP, utf8, n); in unknown_toUtf8() 1416 e->utf8[i][0] = 1; in XmlInitUnknownEncoding() 1417 e->utf8[i][1] = 0; in XmlInitUnknownEncoding() 1425 e->utf8[i][0] = 0; in XmlInitUnknownEncoding() 1432 e->utf8[i][0] = 1; in XmlInitUnknownEncoding() [all …]
|
| /src/contrib/netbsd-tests/usr.bin/cut/ |
| H A D | t_cut.sh | 106 atf_test_case utf8 129 atf_add_test_case utf8
|
| /src/crypto/openssh/regress/unittests/utf8/ |
| H A D | tests.c | 36 one(int utf8, const char *name, const char *mbs, int width, in one() argument 45 (void)strlcpy(buf, utf8 ? "utf8_" : "c_", sizeof(buf)); in one()
|
| /src/crypto/krb5/src/plugins/tls/k5tls/ |
| H A D | deps | 11 $(top_srcdir)/include/k5-trace.h $(top_srcdir)/include/k5-utf8.h \ 22 $(top_srcdir)/include/k5-trace.h $(top_srcdir)/include/k5-utf8.h \
|
| /src/crypto/krb5/src/lib/krb5/krb/ |
| H A D | princ_comp.c | 85 unsigned int utf8 = (flags & KRB5_PRINCIPAL_COMPARE_UTF8) != 0; in krb5_principal_compare_flags() local 116 if (utf8) in krb5_principal_compare_flags()
|
| /src/contrib/dialog/samples/ |
| H A D | msgbox-utf8 | 7 . ./setup-utf8
|
| H A D | yesno-utf8 | 6 . ./setup-utf8
|
| H A D | menubox-utf8 | 8 . ./setup-utf8
|
| /src/contrib/libarchive/libarchive/ |
| H A D | archive_string.h | 235 int archive_mstring_copy_utf8(struct archive_mstring *, const char *utf8); 241 int archive_mstring_update_utf8(struct archive *, struct archive_mstring *aes, const char *utf8…
|