MCPcopy
hub / github.com/go-yaml/yaml / is_ascii

Function is_ascii

yamlprivateh.go:80–82  ·  view source on GitHub ↗

Check if the character is ASCII.

(b []byte, i int)

Source from the content-addressed store, hash-verified

78
79// Check if the character is ASCII.
80func is_ascii(b []byte, i int) bool {
81 return b[i] <= 0x7F
82}
83
84// Check if the character at the start of the buffer can be printed unescaped.
85func is_printable(b []byte, i int) bool {

Calls

no outgoing calls

Tested by

no test coverage detected