MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / isFirstByteOf2ByteChar

Function isFirstByteOf2ByteChar

src/pkg/utils/istextorbinary.ts:199–201  ·  view source on GitHub ↗
(byte: number)

Source from the content-addressed store, hash-verified

197}
198
199function isFirstByteOf2ByteChar(byte: number) {
200 return byte >> 5 === 6; // 110xxxxx?
201}
202
203function isLaterByteOfUtf8(byte: number) {
204 return byte >> 6 === 2; // 10xxxxxx?

Callers 2

getChunkBeginFunction · 0.85
getChunkEndFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected