MCPcopy Create free account
hub / github.com/github/gh-aw / isCSIParameterChar

Function isCSIParameterChar

pkg/stringutil/ansi.go:115–117  ·  view source on GitHub ↗

isCSIParameterChar checks if a character is a valid CSI parameter or intermediate character Parameter characters are in range 0x30-0x3F (0-?) Intermediate characters are in range 0x20-0x2F (space-/)

(b byte)

Source from the content-addressed store, hash-verified

113// Parameter characters are in range 0x30-0x3F (0-?)
114// Intermediate characters are in range 0x20-0x2F (space-/)
115func isCSIParameterChar(b byte) bool {
116 return (b >= 0x20 && b <= 0x2F) || (b >= 0x30 && b <= 0x3F)
117}

Callers 1

skipCSISequenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected