Lines Matching +full:case +full:- +full:sensitive
2 // Use of this source code is governed by a BSD-style license that can be
67 return prev != output->length(); in Truncated()
80 EXPECT_FALSE(Truncated("\xe1\x80\xbf", static_cast<size_t>(-1), &output)); in TEST()
161 // BOMs in UTF-16(BE|LE) and UTF-32(BE|LE) in TEST()
188 // Non-characters : U+xxFFF[EF] where xx is 0x00 through 0x10 and <FDD0,FDEF> in TEST()
200 // Strings in legacy encodings that are valid in UTF-8, but in TEST()
201 // are invalid as UTF-8 in real data. in TEST()
218 // "abc" with U+201[CD] in windows-125[0-8] in TEST()
222 // U+0639 U+064E U+0644 U+064E in ISO-8859-6 in TEST()
226 // U+03B3 U+03B5 U+03B9 U+03AC in ISO-8859-7 in TEST()
331 EXPECT_TRUE(IsStringUTF8("\xef\xbb\xbf" "abc")); // UTF-8 BOM in TEST()
356 // BOMs in UTF-16(BE|LE) and UTF-32(BE|LE) in TEST()
362 // Non-characters : U+xxFFF[EF] where xx is 0x00 through 0x10 and <FDD0,FDEF> in TEST()
369 // in a legacy encoding that are valid in UTF-8, but in real data, in TEST()
370 // most of them are invalid as UTF-8. in TEST()
371 EXPECT_FALSE(IsStringUTF8("caf\xe9")); // cafe with U+00E9 in ISO-8859-1 in TEST()
372 EXPECT_FALSE(IsStringUTF8("\xb0\xa1\xb0\xa2")); // U+AC00, U+AC001 in EUC-KR in TEST()
374 // "abc" with U+201[CD] in windows-125[0-8] in TEST()
376 // U+0639 U+064E U+0644 U+064E in ISO-8859-6 in TEST()
378 // U+03B3 U+03B5 U+03B9 U+03AC in ISO-8859-7 in TEST()
381 // Check that we support Embedded Nulls. The first uses the canonical UTF-8 in TEST()
382 // representation, and the second uses a 2-byte sequence. The second version in TEST()
383 // is invalid UTF-8 since UTF-8 states that the shortest encoding for a in TEST()
403 // Also, test that a non-ASCII character will be detected regardless of its in TEST()
406 const size_t string_length = arraysize(char_ascii) - 1; in TEST()
408 for (size_t len = 0, max_len = string_length - offset; len < max_len; in TEST()
421 const size_t string_length = arraysize(char16_ascii) - 1; in TEST()
423 for (size_t len = 0, max_len = string_length - offset; len < max_len; in TEST()
431 // Also test when the upper half is non-zero. in TEST()
497 const int length_with_nul = arraysize(chars_with_nul) - 1; in TEST()
557 // Expected behavior: we show one post-decimal digit when we have in TEST()
558 // under two pre-decimal digits, except in cases where it makes no in TEST()
665 // Verify the lower case as well. in TEST()
712 base::CompareCase::SENSITIVE)); in TEST()
714 base::CompareCase::SENSITIVE)); in TEST()
719 EXPECT_FALSE(StartsWith("java", "javascript", base::CompareCase::SENSITIVE)); in TEST()
725 base::CompareCase::SENSITIVE)); in TEST()
728 EXPECT_TRUE(StartsWith("java", std::string(), base::CompareCase::SENSITIVE)); in TEST()
732 base::CompareCase::SENSITIVE)); in TEST()
735 base::CompareCase::SENSITIVE)); in TEST()
743 base::CompareCase::SENSITIVE)); in TEST()
749 base::CompareCase::SENSITIVE)); in TEST()
753 base::CompareCase::SENSITIVE)); in TEST()
758 base::CompareCase::SENSITIVE)); in TEST()
760 base::CompareCase::SENSITIVE)); in TEST()
766 base::CompareCase::SENSITIVE)); in TEST()
770 base::CompareCase::SENSITIVE)); in TEST()
776 base::CompareCase::SENSITIVE)); in TEST()
780 base::CompareCase::SENSITIVE)); in TEST()
784 base::CompareCase::SENSITIVE)); in TEST()
787 EXPECT_TRUE(EndsWith(string16(), string16(), base::CompareCase::SENSITIVE)); in TEST()
859 subst.push_back(ASCIIToUTF16("-1k")); in TEST()
860 subst.push_back(ASCIIToUTF16("-2l")); in TEST()
861 subst.push_back(ASCIIToUTF16("-3m")); in TEST()
862 subst.push_back(ASCIIToUTF16("-4n")); in TEST()
870 "1ii,0jj,-1kk,-2ll,-3mm,-4nn,9a")); in TEST()
902 // Test the normal case where we fit in our buffer. in TEST()
925 // Test the case were we _just_ competely fit including the null. in TEST()
935 // Test the case were we we are one smaller, so we can't fit the null. in TEST()
945 // Test the case were we are just too small. in TEST()
979 { L"%-8d (%02.1f%)", true }, in TEST()
988 const char kRemoveChars[] = "-/+*"; in TEST()
989 std::string input = "A-+bc/d!*"; in TEST()
1070 EXPECT_EQ(-1, CompareCaseInsensitiveASCII("Asdf", "aSDfA")); in TEST()
1074 EXPECT_EQ(-1, CompareCaseInsensitiveASCII("AsdfA", "aSDfb")); in TEST()
1114 std::min(num_chars, arraysize(kOriginal) - 1)), in WritesCorrectly()
1128 // when using a Copy-on-Write implementation. in TEST_F()