Lines Matching refs:HasBOM
66 bool HasBOM = hasUTF16ByteOrderMark(makeArrayRef("\xff\xfe", 2)); in TEST() local
67 EXPECT_TRUE(HasBOM); in TEST()
68 HasBOM = hasUTF16ByteOrderMark(makeArrayRef("\xfe\xff", 2)); in TEST()
69 EXPECT_TRUE(HasBOM); in TEST()
70 HasBOM = hasUTF16ByteOrderMark(makeArrayRef("\xfe\xff ", 3)); in TEST()
71 EXPECT_TRUE(HasBOM); // Don't care about odd lengths. in TEST()
72 HasBOM = hasUTF16ByteOrderMark(makeArrayRef("\xfe\xff\x00asdf", 6)); in TEST()
73 EXPECT_TRUE(HasBOM); in TEST()
75 HasBOM = hasUTF16ByteOrderMark(None); in TEST()
76 EXPECT_FALSE(HasBOM); in TEST()
77 HasBOM = hasUTF16ByteOrderMark(makeArrayRef("\xfe", 1)); in TEST()
78 EXPECT_FALSE(HasBOM); in TEST()