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

Function as_digit

yamlprivateh.go:58–60  ·  view source on GitHub ↗

Get the value of a digit.

(b []byte, i int)

Source from the content-addressed store, hash-verified

56
57// Get the value of a digit.
58func as_digit(b []byte, i int) int {
59 return int(b[i]) - '0'
60}
61
62// Check if the character at the specified position is a hex-digit.
63func is_hex(b []byte, i int) bool {

Calls

no outgoing calls

Tested by

no test coverage detected