MCPcopy Create free account
hub / github.com/microsoft/typescript-go / IsOctalDigit

Function IsOctalDigit

internal/stringutil/util.go:75–77  ·  view source on GitHub ↗
(ch rune)

Source from the content-addressed store, hash-verified

73}
74
75func IsOctalDigit(ch rune) bool {
76 return ch >= '0' && ch <= '7'
77}
78
79func IsHexDigit(ch rune) bool {
80 return ch >= '0' && ch <= '9' || ch >= 'A' && ch <= 'F' || ch >= 'a' && ch <= 'f'

Callers 3

isAllOctalDigitsFunction · 0.92
scanEscapeSequenceMethod · 0.92
scanDigitsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected