MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / SkipByteOrderMark

Method SkipByteOrderMark

native/thirdpart/flatbuffers/idl_parser.cpp:317–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317CheckedError Parser::SkipByteOrderMark() {
318 if (static_cast<unsigned char>(*cursor_) != 0xef) return NoError();
319 cursor_++;
320 if (static_cast<unsigned char>(*cursor_) != 0xbb)
321 return Error("invalid utf-8 byte order mark");
322 cursor_++;
323 if (static_cast<unsigned char>(*cursor_) != 0xbf)
324 return Error("invalid utf-8 byte order mark");
325 cursor_++;
326 return NoError();
327}
328
329static inline bool IsIdentifierStart(char c) {
330 return is_alpha(c) || (c == '_');

Callers

nothing calls this directly

Calls 2

NoErrorFunction · 0.85
ErrorFunction · 0.85

Tested by

no test coverage detected