MCPcopy Create free account
hub / github.com/bytebase/bytebase / isSpaceByte

Function isSpaceByte

backend/plugin/parser/tidb/completion.go:520–522  ·  view source on GitHub ↗
(b byte)

Source from the content-addressed store, hash-verified

518}
519
520func isSpaceByte(b byte) bool {
521 return b == ' ' || b == '\t' || b == '\n' || b == '\r'
522}
523
524// lineOffsetToBytePos converts a 1-based line number and 0-based character
525// (rune) offset to a 0-based byte position in the string.

Callers 2

stripStringsAndCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected