Home
last modified time | relevance | path

Searched refs:utf8_string (Results 1 – 18 of 18) sorted by relevance

/external/icing/icing/util/
Di18n-utils.cc47 std::string utf8_string; in Utf16ToUtf8() local
53 utf8_string.resize(utf16_string.length() * 3 + 1); in Utf16ToUtf8()
57 u_strToUTF8(&utf8_string[0], utf8_string.length(), &result_length, in Utf16ToUtf8()
60 utf8_string.resize(result_length); in Utf16ToUtf8()
65 return utf8_string; in Utf16ToUtf8()
69 std::string_view utf8_string) { in Utf8ToUtf16() argument
75 utf16_result.resize(utf8_string.length()); in Utf8ToUtf16()
80 utf8_string.data(), utf8_string.length(), &status); in Utf8ToUtf16()
86 "Failed to convert UTF8 string '", utf8_string, "' to UTF16")); in Utf8ToUtf16()
155 void AppendUchar32ToUtf8(std::string* utf8_string, UChar32 uchar) { in AppendUchar32ToUtf8() argument
[all …]
Di18n-utils.h48 std::string_view utf8_string);
94 void AppendUchar32ToUtf8(std::string* utf8_string, UChar32 uchar);
/external/wpa_supplicant_8/src/crypto/
Dms_funcs.c25 static int utf8_to_ucs2(const u8 *utf8_string, size_t utf8_string_len, in utf8_to_ucs2() argument
32 u8 c = utf8_string[i]; in utf8_to_ucs2()
45 u8 c2 = utf8_string[++i]; in utf8_to_ucs2()
57 u8 c3 = utf8_string[++i]; in utf8_to_ucs2()
/external/webrtc/sdk/objc/base/
DRTCLogging.mm32 const char* utf8_string = log_string.UTF8String;
33 RTC_LOG_V(RTCGetNativeLoggingSeverity(severity)) << utf8_string;
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/testing/
Dre2_test.cc1085 const char utf8_string[] = { in TEST() local
1100 ASSERT_TRUE(RE2::FullMatch(utf8_string, re_test1)); in TEST()
1102 ASSERT_TRUE(RE2::FullMatch(utf8_string, re_test2)); in TEST()
1108 ASSERT_TRUE(RE2::PartialMatch(utf8_string, re_test3, &s)); in TEST()
1111 ASSERT_TRUE(RE2::PartialMatch(utf8_string, re_test4, &s)); in TEST()
1115 RE2 re_test5(utf8_string, RE2::Latin1); in TEST()
1116 ASSERT_TRUE(RE2::FullMatch(utf8_string, re_test5)); in TEST()
1117 RE2 re_test6(utf8_string); in TEST()
1118 ASSERT_TRUE(RE2::FullMatch(utf8_string, re_test6)); in TEST()
1122 ASSERT_FALSE(RE2::FullMatch(utf8_string, re_test7)); in TEST()
[all …]
/external/libtextclassifier/abseil-cpp/absl/strings/
Dstr_split_test.cc666 std::string utf8_string = u8"\u03BA\u1F79\u03C3\u03BC\u03B5"; in TEST() local
669 std::string to_split = "a," + utf8_string; in TEST()
671 EXPECT_THAT(v, ElementsAre("a", utf8_string)); in TEST()
676 std::string to_split = "a," + utf8_string + ",b"; in TEST()
677 std::string unicode_delimiter = "," + utf8_string + ","; in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dstr_split_test.cc666 std::string utf8_string = u8"\u03BA\u1F79\u03C3\u03BC\u03B5"; in TEST() local
669 std::string to_split = "a," + utf8_string; in TEST()
671 EXPECT_THAT(v, ElementsAre("a", utf8_string)); in TEST()
676 std::string to_split = "a," + utf8_string + ",b"; in TEST()
677 std::string unicode_delimiter = "," + utf8_string + ","; in TEST()
/external/abseil-cpp/absl/strings/
Dstr_split_test.cc652 std::string utf8_string = u8"\u03BA\u1F79\u03C3\u03BC\u03B5"; in TEST() local
655 std::string to_split = "a," + utf8_string; in TEST()
657 EXPECT_THAT(v, ElementsAre("a", utf8_string)); in TEST()
662 std::string to_split = "a," + utf8_string + ",b"; in TEST()
663 std::string unicode_delimiter = "," + utf8_string + ","; in TEST()
/external/openscreen/third_party/abseil/src/absl/strings/
Dstr_split_test.cc666 std::string utf8_string = u8"\u03BA\u1F79\u03C3\u03BC\u03B5"; in TEST() local
669 std::string to_split = "a," + utf8_string; in TEST()
671 EXPECT_THAT(v, ElementsAre("a", utf8_string)); in TEST()
676 std::string to_split = "a," + utf8_string + ",b"; in TEST()
677 std::string unicode_delimiter = "," + utf8_string + ","; in TEST()
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dstr_split_test.cc652 std::string utf8_string = u8"\u03BA\u1F79\u03C3\u03BC\u03B5"; in TEST() local
655 std::string to_split = "a," + utf8_string; in TEST()
657 EXPECT_THAT(v, ElementsAre("a", utf8_string)); in TEST()
662 std::string to_split = "a," + utf8_string + ",b"; in TEST()
663 std::string unicode_delimiter = "," + utf8_string + ","; in TEST()
/external/angle/third_party/abseil-cpp/absl/strings/
Dstr_split_test.cc688 std::string utf8_string = u8"\u03BA\u1F79\u03C3\u03BC\u03B5"; in TEST() local
691 std::string to_split = "a," + utf8_string; in TEST()
693 EXPECT_THAT(v, ElementsAre("a", utf8_string)); in TEST()
698 std::string to_split = "a," + utf8_string + ",b"; in TEST()
699 std::string unicode_delimiter = "," + utf8_string + ","; in TEST()
/external/icu/icu4c/source/test/intltest/
Dutxttest.cpp1471 const char *utf8_string = "\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41"; in Ticket10562() local
1472 UText *utf8Text = utext_openUTF8(NULL, utf8_string, -1, &status); in Ticket10562()
Dustrtest.cpp1899 std::string utf8_string((const char *)utf8, sizeof(utf8)); in TestUTF8() local
1900 UnicodeString from8b = UnicodeString::fromUTF8(utf8_string); in TestUTF8()
/external/protobuf/python/compatibility_tests/v2.5.0/protos/src/proto/google/protobuf/
Dunittest.proto504 optional string utf8_string = 6 [default = "\341\210\264"]; field
/external/protobuf/java/compatibility_tests/v2.5.0/more_protos/src/proto/google/protobuf/
Dunittest.proto504 optional string utf8_string = 6 [default = "\341\210\264"]; field
/external/protobuf/java/compatibility_tests/v2.5.0/protos/src/proto/google/protobuf/
Dunittest.proto504 optional string utf8_string = 6 [default = "\341\210\264"]; field
/external/protobuf/src/google/protobuf/
Dunittest.proto614 optional string utf8_string = 6 [default = "\341\210\264"]; field
/external/protobuf/python/google/protobuf/internal/
Dreflection_test.py577 self.assertEqual(u'\u1234', proto.utf8_string)