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

Function is_digit

yamlprivateh.go:53–55  ·  view source on GitHub ↗

Check if the character at the specified position is a digit.

(b []byte, i int)

Source from the content-addressed store, hash-verified

51
52// Check if the character at the specified position is a digit.
53func is_digit(b []byte, i int) bool {
54 return b[i] >= '0' && b[i] <= '9'
55}
56
57// Get the value of a digit.
58func as_digit(b []byte, i int) int {

Calls

no outgoing calls

Tested by

no test coverage detected