llvm::hasUTF16ByteOrderMark

Returns true if a blob of text starts with a UTF-16 big or little endian byte order mark.

Synopsis

Declared in <llvm/Support/ConvertUTF.h>

bool
hasUTF16ByteOrderMark(ArrayRef<char> SrcBytes);

Return Value

true if SrcBytes starts with a UTF-16 BOM.

Parameters

NameDescription
SrcBytesRaw bytes to inspect for a leading UTF-16 BOM.