Home
last modified time | relevance | path

Searched refs:IsValidUTF8 (Results 1 – 9 of 9) sorted by relevance

/external/libtextclassifier/native/utils/strings/
Dutf8_test.cc32 TEST(Utf8Test, IsValidUTF8) { in TEST() argument
33 EXPECT_TRUE(IsValidUTF8("1234��hello", 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_FALSE(IsValidUTF8("\xf0\x9f", 2)); in TEST()
40 EXPECT_FALSE(IsValidUTF8("\xf0\x9f\x98\x8b\x8b", 5)); in TEST()
42 EXPECT_FALSE(IsValidUTF8("\xf0\x9f\x98\x61\x61", 5)); in TEST()
Dutf8.h42 bool IsValidUTF8(const char *src, int size);
Dutf8.cc22 bool IsValidUTF8(const char *src, int size) { in IsValidUTF8() function
/external/mesa3d/src/gtest/src/
Dgtest-printers.cc382 bool IsValidUTF8(const char* str, size_t length) { in IsValidUTF8() function
419 IsValidUTF8(str, length)) { in ConditionalPrintAsText()
/external/libaom/libaom/third_party/googletest/src/googletest/src/
Dgtest-printers.cc342 bool IsValidUTF8(const char *str, size_t length) { in IsValidUTF8() function
377 IsValidUTF8(str, length)) { in ConditionalPrintAsText()
/external/googletest/googletest/src/
Dgtest-printers.cc382 bool IsValidUTF8(const char* str, size_t length) { in IsValidUTF8() function
419 IsValidUTF8(str, length)) { in ConditionalPrintAsText()
/external/libvpx/libvpx/third_party/googletest/src/src/
Dgtest-printers.cc379 bool IsValidUTF8(const char* str, size_t length) { in IsValidUTF8() function
416 IsValidUTF8(str, length)) { in ConditionalPrintAsText()
/external/libtextclassifier/native/utils/utf8/
Dunicodetext.cc202 return IsValidUTF8(repr_.data_, repr_.size_); in is_valid()
/external/protobuf/python/google/protobuf/pyext/
Dmessage.cc706 bool IsValidUTF8(PyObject* obj) { in IsValidUTF8() function
736 if (!IsValidUTF8(arg) && !AllowInvalidUTF8(descriptor)) { in CheckString()