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

Function isFirstByteOf4ByteChar

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

Source from the content-addressed store, hash-verified

189}
190
191function isFirstByteOf4ByteChar(byte: number) {
192 return byte >> 3 === 30; // 11110xxx?
193}
194
195function isFirstByteOf3ByteChar(byte: number) {
196 return byte >> 4 === 14; // 1110xxxx?

Callers 2

getChunkBeginFunction · 0.85
getChunkEndFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected