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

Function is_blank

yamlprivateh.go:118–121  ·  view source on GitHub ↗

Check if the character at the specified position is blank (space or tab).

(b []byte, i int)

Source from the content-addressed store, hash-verified

116
117// Check if the character at the specified position is blank (space or tab).
118func is_blank(b []byte, i int) bool {
119 //return is_space(b, i) || is_tab(b, i)
120 return b[i] == ' ' || b[i] == '\t'
121}
122
123// Check if the character at the specified position is a line break.
124func is_break(b []byte, i int) bool {

Calls

no outgoing calls

Tested by

no test coverage detected