Lines Matching defs:HasBOM
69 bool HasBOM = hasUTF16ByteOrderMark(makeArrayRef("\xff\xfe", 2));
70 EXPECT_TRUE(HasBOM);
71 HasBOM = hasUTF16ByteOrderMark(makeArrayRef("\xfe\xff", 2));
72 EXPECT_TRUE(HasBOM);
73 HasBOM = hasUTF16ByteOrderMark(makeArrayRef("\xfe\xff ", 3));
74 EXPECT_TRUE(HasBOM); // Don't care about odd lengths.
75 HasBOM = hasUTF16ByteOrderMark(makeArrayRef("\xfe\xff\x00asdf", 6));
76 EXPECT_TRUE(HasBOM);
78 HasBOM = hasUTF16ByteOrderMark(None);
79 EXPECT_FALSE(HasBOM);
80 HasBOM = hasUTF16ByteOrderMark(makeArrayRef("\xfe", 1));
81 EXPECT_FALSE(HasBOM);