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

Function isAllHexDigits

internal/jsnum/string.go:313–320  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

311}
312
313func isAllHexDigits(s string) bool {
314 for _, r := range s {
315 if !stringutil.IsHexDigit(r) {
316 return false
317 }
318 }
319 return true
320}
321
322func isNumberRune(r rune) bool {
323 if stringutil.IsDigit(r) {

Callers 1

tryParseIntFunction · 0.85

Calls 1

IsHexDigitFunction · 0.92

Tested by

no test coverage detected