libymlMacro IS_BOM
Source macro_rules! IS_BOM {
($string:expr) => { ... };
}
Expand description
Checks if the first three bytes of the given string form the UTF-8 byte order mark (BOM) for UTF-8 encoding.
§Parameters
string: A reference to the string to check.
§Return
bool: Returns true if the first three bytes of the string form the UTF-8 BOM, and false otherwise.