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

Function IsHexDigit

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

Source from the content-addressed store, hash-verified

77}
78
79func IsHexDigit(ch rune) bool {
80 return ch >= '0' && ch <= '9' || ch >= 'A' && ch <= 'F' || ch >= 'a' && ch <= 'f'
81}
82
83func IsASCIILetter(ch rune) bool {
84 return ch >= 'A' && ch <= 'Z' || ch >= 'a' && ch <= 'z'

Callers 4

decodeEntityFunction · 0.92
isAllHexDigitsFunction · 0.92
scanEscapeSequenceMethod · 0.92
scanHexDigitsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected