/freebsd-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 …]
|
/freebsd-src/crypto/openssl/crypto/x509/ |
H A D | v3_utf8.c | 30 ASN1_UTF8STRING *utf8) in i2s_ASN1_UTF8STRING() argument 34 if (utf8 == NULL || utf8->length == 0) { in i2s_ASN1_UTF8STRING() 38 if ((tmp = OPENSSL_malloc(utf8->length + 1)) == NULL) { in i2s_ASN1_UTF8STRING() 42 memcpy(tmp, utf8->data, utf8->length); in i2s_ASN1_UTF8STRING() 43 tmp[utf8->length] = 0; in i2s_ASN1_UTF8STRING() 50 ASN1_UTF8STRING *utf8; in s2i_ASN1_UTF8STRING() local 55 if ((utf8 = ASN1_UTF8STRING_new()) == NULL) { in s2i_ASN1_UTF8STRING() 59 if (!ASN1_STRING_set((ASN1_STRING *)utf8, str, strlen(str))) { in s2i_ASN1_UTF8STRING() 61 ASN1_UTF8STRING_free(utf8); in s2i_ASN1_UTF8STRING() 65 ebcdic2ascii(utf8->data, utf8->data, utf8->length); in s2i_ASN1_UTF8STRING() [all …]
|
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | ConvertUTF.h | 130 typedef unsigned char UTF8; /* typically 8 bits */ typedef 161 const UTF8** sourceStart, const UTF8* sourceEnd, 165 * Convert a partial UTF8 sequence to UTF32. If the sequence ends in an 169 const UTF8** sourceStart, const UTF8* sourceEnd, 173 * Convert a partial UTF8 sequence to UTF32. If the sequence ends in an 177 const UTF8** sourceStart, const UTF8* sourceEnd, 182 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags); 186 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags); 196 Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd); 198 Boolean isLegalUTF8String(const UTF8 **source, const UTF8 *sourceEnd); [all …]
|
/freebsd-src/contrib/llvm-project/lldb/source/DataFormatters/ |
H A D | StringPrinter.cpp | 169 DecodedCharBuffer GetPrintableImpl<StringElementType::UTF8>( in GetPrintableImpl() 172 // If the utf8 encoded length is invalid (i.e., not in the closed interval in GetPrintableImpl() 174 // isn't valid utf8, fall back to printing an ASCII-escaped subsequence. in GetPrintableImpl() 179 // Convert the valid utf8 sequence to a utf32 codepoint. This cannot fail. in GetPrintableImpl() 181 const llvm::UTF8 *buffer_for_conversion = buffer; in GetPrintableImpl() 185 "Failed to convert legal utf8 sequence"); in GetPrintableImpl() 188 // The UTF8 helper always advances by the utf8 encoded length. in GetPrintableImpl() 228 case StringElementType::UTF8: in GetPrintable() 229 return GetPrintableImpl<StringElementType::UTF8>(buffer, buffer_end, next, in GetPrintable() 240 case GetPrintableElementType::UTF8: in GetDefaultEscapingHelper() [all …]
|
/freebsd-src/contrib/llvm-project/llvm/lib/Support/ |
H A D | ConvertUTFWrapper.cpp | 20 char *&ResultPtr, const UTF8 *&ErrorPtr) { in ConvertUTF8toWide() 25 const UTF8 *Pos = reinterpret_cast<const UTF8*>(Source.begin()); in ConvertUTF8toWide() 26 if (!isLegalUTF8String(&Pos, reinterpret_cast<const UTF8*>(Source.end()))) { in ConvertUTF8toWide() 34 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide() 47 const UTF8 *sourceStart = (const UTF8 *)Source.data(); in ConvertUTF8toWide() 68 UTF8 *TargetStart = reinterpret_cast<UTF8 *>(ResultPtr); in ConvertCodePointToUTF8() 69 UTF8 *TargetEnd = TargetStart + 4; in ConvertCodePointToUTF8() 117 UTF8 *Dst = reinterpret_cast<UTF8 *>(&Out[0]); in convertUTF16ToUTF8String() 118 UTF8 *DstEnd = Dst + Out.size(); in convertUTF16ToUTF8String() 175 UTF8 *Dst = reinterpret_cast<UTF8 *>(&Out[0]); in convertUTF32ToUTF8String() [all …]
|
H A D | ConvertUTF.cpp | 57 Jan 2004: updated switches in from-UTF8 conversions. 131 * Magic values subtracted from a buffer value during UTF8 conversion. 145 static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC }; 265 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) { in ConvertUTF16toUTF8() 268 UTF8* target = *targetStart; in ConvertUTF16toUTF8() 319 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8() 320 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8() 321 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8() 322 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8() 335 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) { in ConvertUTF32toUTF8() [all …]
|
H A D | DJB.cpp | 23 const UTF8 *const Begin8Const = in chopOneUTF32() 24 reinterpret_cast<const UTF8 *>(Buffer.begin()); in chopOneUTF32() 25 const UTF8 *Begin8 = Begin8Const; in chopOneUTF32() 31 ConvertUTF8toUTF32(&Begin8, reinterpret_cast<const UTF8 *>(Buffer.end()), in chopOneUTF32() 37 static StringRef toUTF8(UTF32 C, MutableArrayRef<UTF8> Storage) { in toUTF8() 39 UTF8 *Begin8 = Storage.begin(); in toUTF8() 76 std::array<UTF8, UNI_MAX_UTF8_BYTES_PER_CODE_POINT> Storage; in caseFoldingDjbHash()
|
/freebsd-src/crypto/openssl/doc/man7/ |
H A D | EVP_SIGNATURE-RSA.pod | 21 =item "digest" (B<OSSL_SIGNATURE_PARAM_DIGEST>) <UTF8 string> 23 =item "properties" (B<OSSL_SIGNATURE_PARAM_PROPERTIES>) <UTF8 string> 27 =item "pad-mode" (B<OSSL_SIGNATURE_PARAM_PAD_MODE>) <UTF8 string> 43 =item "mgf1-digest" (B<OSSL_SIGNATURE_PARAM_MGF1_DIGEST>) <UTF8 string> 47 =item "mgf1-properties" (B<OSSL_SIGNATURE_PARAM_MGF1_PROPERTIES>) <UTF8 string> 52 =item "saltlen" (B<OSSL_SIGNATURE_PARAM_PSS_SALTLEN>) <integer> or <UTF8 string> 84 =item "digest" (B<OSSL_SIGNATURE_PARAM_DIGEST>) <UTF8 string> 86 =item "pad-mode" (B<OSSL_SIGNATURE_PARAM_PAD_MODE>) <UTF8 string> 88 =item "mgf1-digest" (B<OSSL_SIGNATURE_PARAM_MGF1_DIGEST>) <UTF8 string> 90 =item "saltlen" (B<OSSL_SIGNATURE_PARAM_PSS_SALTLEN>) <integer> or <UTF8 string>
|
H A D | EVP_ASYM_CIPHER-RSA.pod | 16 =item "pad-mode" (B<OSSL_ASYM_CIPHER_PARAM_PAD_MODE>) <UTF8 string> 50 =item "digest" (B<OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST>) <UTF8 string> 52 =item "digest-props" (B<OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST_PROPS>) <UTF8 string> 54 =item "mgf1-digest" (B<OSSL_ASYM_CIPHER_PARAM_MGF1_DIGEST>) <UTF8 string> 56 =item "mgf1-digest-props" (B<OSSL_ASYM_CIPHER_PARAM_MGF1_DIGEST_PROPS>) <UTF8 string>
|
H A D | provider-object.pod | 32 This means that the I<object data> is passed as an octet string or an UTF8 38 (see L</Parameter reference> below), where it's assumed to a plain UTF8 string. 97 =item "data" (B<OSSL_OBJECT_PARAM_DATA>) <octet string> or <UTF8 string> 114 The object data may only be I<passed by value>, and should be a UTF8 145 =item "data-type" (B<OSSL_OBJECT_PARAM_DATA_TYPE>) <UTF8 string> 156 =item "data-structure" (B<OSSL_OBJECT_PARAM_DATA_STRUCTURE>) <UTF8 string> 161 =item "desc" (B<OSSL_OBJECT_PARAM_DESC>) <UTF8 string>
|
/freebsd-src/crypto/openssl/test/recipes/ |
H A D | 25-test_eai_data.t | 19 #./util/wrap.pl apps/openssl verify -nameopt utf8 -no_check_time -CAfile test/recipes/25-test_eai_data/ascii_chain.pem test/recipes/25-test_eai_data/ascii_leaf.pem 20 #./util/wrap.pl apps/openssl verify -nameopt utf8 -no_check_time -CAfile test/recipes/25-test_eai_data/utf8_chain.pem test/recipes/25-test_eai_data/utf8_leaf.pem 21 #./util/wrap.pl apps/openssl verify -nameopt utf8 -no_check_time -CAfile test/recipes/25-test_eai_data/utf8_chain.pem test/recipes/25-test_eai_data/ascii_leaf.pem 22 #./util/wrap.pl apps/openssl verify -nameopt utf8 -no_check_time -CAfile test/recipes/25-test_eai_data/ascii_chain.pem test/recipes/25-test_eai_data/utf8_leaf.pem 50 is(cmp_text($out, srctop_file($folder, "san.utf8")), 0, 'Comparing othername for IDN domain'); 55 ok(run(app(["openssl", "verify", "-nameopt", "utf8", "-no_check_time", "-verify_email", "学生\@elementary.school.example.com", "-CAfile", $ascii_chain_pem, $ascii_pem]))); 56 ok(run(app(["openssl", "verify", "-nameopt", "utf8", "-no_check_time", "-verify_email", "医生\@大学.example.com", "-CAfile", $utf8_chain_pem, $utf8_pem]))); 59 ok(run(app(["openssl", "verify", "-nameopt", "utf8", "-no_check_time", "-CAfile", $ascii_chain_pem, $ascii_pem]))); 60 ok(run(app(["openssl", "verify", "-nameopt", "utf8", "-no_check_time", "-CAfile", $utf8_chain_pem, $utf8_pem]))); 61 ok(run(app(["openssl", "verify", "-nameopt", "utf8", " [all...] |
H A D | 25-test_req.t | 43 my $val1 = "subjectAltName=otherName:1.2.3.4;UTF8:test,email:info\@example.com"; 49 $val1 =~ s/UTF8/XXXX/; # execute the error handling in do_othername 73 "-new", "-out", "testreq-rsa.pem", "-utf8", 100 "-new", "-out", "testreq-rsa.pem", "-utf8", 107 "-new", "-out", "testreq-rsa.pem", "-utf8", 124 "-new", "-out", "testreq_withattrs_pem.pem", "-utf8", 135 "-new", "-out", "testreq_withattrs_der.pem", "-utf8", 156 "-new", "-out", "testreq-rsapss.pem", "-utf8", 166 "-new", "-out", "testreq-rsapss2.pem", "-utf8", 178 "-new", "-out", "testreq-rsapssmand.pem", "-utf8", [all …]
|
H A D | 25-test_rusext.t | 24 my $out_utf8 = "grfc.utf8"; 31 "-nameopt", "utf8", "-certopt", "no_pubkey"]))); 32 is(cmp_text($out_utf8, srctop_file('test', 'recipes', '25-test_rusext_data', 'grfc.utf8')), 33 0, 'Comparing utf8 output');
|
H A D | 25-test_crl.t | 24 my $utf = srctop_file("test/certs", "cyrillic_crl.utf8"); 48 "-out", $out, "-nameopt", "utf8"]))); 50 "-out", $out, "-nameopt", "utf8"]))); 51 is(cmp_text($out, srctop_file("test/certs", "cyrillic_crl.utf8")), 52 0, 'Comparing utf8 output');
|
/freebsd-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
|
/freebsd-src/secure/lib/libcrypto/man/man7/ |
H A D | EVP_SIGNATURE-RSA.7 | 153 .IX Item "digest (OSSL_SIGNATURE_PARAM_DIGEST) <UTF8 string>" 157 .IX Item "properties (OSSL_SIGNATURE_PARAM_PROPERTIES) <UTF8 string>" 162 .IX Item "pad-mode (OSSL_SIGNATURE_PARAM_PAD_MODE) <UTF8 string>" 183 .IX Item "mgf1-digest (OSSL_SIGNATURE_PARAM_MGF1_DIGEST) <UTF8 string>" 188 .IX Item "mgf1-properties (OSSL_SIGNATURE_PARAM_MGF1_PROPERTIES) <UTF8 string>" 193 .IX Item "saltlen (OSSL_SIGNATURE_PARAM_PSS_SALTLEN) <integer> or <UTF8 string>" 221 .IX Item "digest (OSSL_SIGNATURE_PARAM_DIGEST) <UTF8 string>" 225 .IX Item "pad-mode (OSSL_SIGNATURE_PARAM_PAD_MODE) <UTF8 string>" 228 .IX Item "mgf1-digest (OSSL_SIGNATURE_PARAM_MGF1_DIGEST) <UTF8 string>" 231 .IX Item "saltlen (OSSL_SIGNATURE_PARAM_PSS_SALTLEN) <integer> or <UTF8 string>"
|
/freebsd-src/contrib/libarchive/libarchive/test/ |
H A D | test_archive_string_conversion.c | 53 /* Translate code point to UTF8 */ in unicode_to_utf8() 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_nf in test_archive_string_normalization_nfc() 464 struct archive_string utf8; test_archive_string_normalization_mac_nfd() local [all...] |
/freebsd-src/crypto/heimdal/doc/doxyout/ntlm/man/man3/ |
H A D | ntlm_core.3 | 126 \fIusername\fP name of the user, as sent in the message, assumed to be in UTF8. 128 \fItarget\fP the name of the target, assumed to be in UTF8. 174 \fIusername\fP name of the user, as sent in the message, assumed to be in UTF8. 176 \fItarget\fP the name of the target, assumed to be in UTF8. 353 Calculate the NTLM key, the password is assumed to be in UTF8. 378 \fIusername\fP name of the user, as sent in the message, assumed to be in UTF8. 380 \fItarget\fP the name of the target, assumed to be in UTF8. 401 \fIusername\fP name of the user, as sent in the message, assumed to be in UTF8. 403 \fItarget\fP the name of the target, assumed to be in UTF8.
|
/freebsd-src/crypto/openssl/include/openssl/ |
H A D | core_names.h | 127 #define OSSL_DIGEST_PARAM_MICALG "micalg" /* utf8 string */ 158 #define OSSL_MAC_PARAM_CUSTOM "custom" /* utf8 string */ 170 #define OSSL_MAC_PARAM_CIPHER OSSL_ALG_PARAM_CIPHER /* utf8 string */ 171 #define OSSL_MAC_PARAM_DIGEST OSSL_ALG_PARAM_DIGEST /* utf8 string */ 172 #define OSSL_MAC_PARAM_PROPERTIES OSSL_ALG_PARAM_PROPERTIES /* utf8 string */ 196 #define OSSL_KDF_PARAM_DIGEST OSSL_ALG_PARAM_DIGEST /* utf8 string */ 197 #define OSSL_KDF_PARAM_CIPHER OSSL_ALG_PARAM_CIPHER /* utf8 string */ 198 #define OSSL_KDF_PARAM_MAC OSSL_ALG_PARAM_MAC /* utf8 string */ 200 #define OSSL_KDF_PARAM_PROPERTIES OSSL_ALG_PARAM_PROPERTIES /* utf8 string */ 202 #define OSSL_KDF_PARAM_MODE "mode" /* utf8 string or int */ [all …]
|
/freebsd-src/contrib/bearssl/src/x509/ |
H A D | asn1.t0 | 399 : read-UTF8 ( lim -- lim val ) 404 dup 0xE0 < uf 0x1F and 1 read-UTF8-next 0x80 0x7FF enduf 405 dup 0xF0 < uf 0x0F and 2 read-UTF8-next 0x800 0xFFFF enduf 406 dup 0xF8 < uf 0x07 and 3 read-UTF8-next 0x10000 0x10FFFF enduf 415 : read-UTF8-next ( lim val n -- lim val val ) 418 read-UTF8-chunk 425 : read-UTF8-chunk ( lim val -- lim val ) 476 : pad-append-UTF8-chunk ( off val nn -- off ) 489 : encode-UTF8 ( val off -- off ) 499 val 0 pad-append-UTF8-chunk [all …]
|
/freebsd-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
|
/freebsd-src/crypto/openssl/external/perl/Text-Template-1.56/ |
H A D | Makefile.PL | 31 "Test::More::UTF8" => 0, 34 "utf8" => 0, 51 "Test::More::UTF8" => 0, 56 "utf8" => 0,
|
/freebsd-src/contrib/mandoc/ |
H A D | makewhatis.8 | 27 .Op Fl T Cm utf8 31 .Op Fl T Cm utf8 35 .Op Fl T Cm utf8 40 .Op Fl T Cm utf8 115 .It Fl T Cm utf8
|
/freebsd-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() 62 /* debug3("failed to convert utf8 payload:%s error:%d", utf8, GetLastError()); */ in utf8_to_utf16()
|
/freebsd-src/crypto/openssl/doc/man3/ |
H A D | ASN1_STRING_print_ex.pod | 39 suitable, or on UTF8 terminals B<ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB>. 47 interprets UTF8 sequences. 54 will only be used if UTF8 conversion is not set (see below). 62 If B<ASN1_STRFLGS_UTF8_CONVERT> is set then characters are converted to UTF8 63 format first. If the terminal supports the display of UTF8 sequences then this
|