/external/libtextclassifier/native/utils/strings/ |
D | utf8_test.cc | 32 TEST(Utf8Test, IsValidUTF8) { in TEST() argument 33 EXPECT_TRUE(IsValidUTF8("1234hello", 13)); in TEST() 34 EXPECT_TRUE(IsValidUTF8("\u304A\u00B0\u106B", 8)); in TEST() 35 EXPECT_TRUE(IsValidUTF8("this is a test", 26)); in TEST() 36 EXPECT_TRUE(IsValidUTF8("\xf0\x9f\x98\x8b", 4)); in TEST() 38 EXPECT_TRUE(IsValidUTF8("\xf0\x90\x80\x80", 4)); in TEST() 40 EXPECT_FALSE(IsValidUTF8("\xf0\x9f", 2)); in TEST() 42 EXPECT_FALSE(IsValidUTF8("\xf0\x9f\x98\x8b\x8b", 5)); in TEST() 44 EXPECT_FALSE(IsValidUTF8("\xf0\x9f\x98\x61\x61", 5)); in TEST() 46 EXPECT_FALSE(IsValidUTF8("\xc0\x81", 2)); in TEST() [all …]
|
D | utf8.h | 42 bool IsValidUTF8(const char *src, int size);
|
D | utf8.cc | 23 bool IsValidUTF8(const char *src, int size) { in IsValidUTF8() function
|
/external/mesa3d/src/gtest/src/ |
D | gtest-printers.cc | 382 bool IsValidUTF8(const char* str, size_t length) { in IsValidUTF8() function 419 IsValidUTF8(str, length)) { in ConditionalPrintAsText()
|
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/src/ |
D | gtest-printers.cc | 384 bool IsValidUTF8(const char* str, size_t length) { in IsValidUTF8() function 421 IsValidUTF8(str, length)) { in ConditionalPrintAsText()
|
/external/cronet/third_party/boringssl/src/third_party/googletest/src/ |
D | gtest-printers.cc | 384 bool IsValidUTF8(const char* str, size_t length) { in IsValidUTF8() function 421 IsValidUTF8(str, length)) { in ConditionalPrintAsText()
|
/external/googletest/googletest/src/ |
D | gtest-printers.cc | 459 bool IsValidUTF8(const char* str, size_t length) { in IsValidUTF8() function 496 IsValidUTF8(str, length)) { in ConditionalPrintAsText()
|
/external/libvpx/third_party/googletest/src/src/ |
D | gtest-printers.cc | 481 bool IsValidUTF8(const char* str, size_t length) { in IsValidUTF8() function 516 IsValidUTF8(str, length)) { in ConditionalPrintAsText()
|
/external/cronet/third_party/googletest/src/googletest/src/ |
D | gtest-printers.cc | 481 bool IsValidUTF8(const char* str, size_t length) { in IsValidUTF8() function 516 IsValidUTF8(str, length)) { in ConditionalPrintAsText()
|
/external/libaom/third_party/googletest/src/googletest/src/ |
D | gtest-printers.cc | 481 bool IsValidUTF8(const char* str, size_t length) { in IsValidUTF8() function 516 IsValidUTF8(str, length)) { in ConditionalPrintAsText()
|
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/ |
D | parse.cc | 1417 static bool IsValidUTF8(const StringPiece& s, RegexpStatus* status) { in IsValidUTF8() function 1760 if (!IsValidUTF8(seq, status)) in ParseUnicodeGroup() 1768 if (!IsValidUTF8(name, status)) in ParseUnicodeGroup() 2069 if (!IsValidUTF8(*s, status_)) in ParsePerlFlags() 2079 if (!IsValidUTF8(name, status_)) in ParsePerlFlags()
|
/external/libtextclassifier/native/utils/utf8/ |
D | unicodetext.cc | 203 return IsValidUTF8(repr_.data_, repr_.size_); in is_valid()
|
/external/cronet/third_party/protobuf/python/google/protobuf/pyext/ |
D | message.cc | 656 bool IsValidUTF8(PyObject* obj) { in IsValidUTF8() function 686 if (!IsValidUTF8(arg) && !AllowInvalidUTF8(descriptor)) { in CheckString()
|
/external/protobuf/python/google/protobuf/pyext/ |
D | message.cc | 657 bool IsValidUTF8(PyObject* obj) { in IsValidUTF8() function 687 if (!IsValidUTF8(arg) && !AllowInvalidUTF8(descriptor)) { in CheckString()
|