MCPcopy Index your code
hub / github.com/Shopify/go-lua / readDigits

Method readDigits

scanner.go:204–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202}
203
204func (s *scanner) readDigits() (c rune) {
205 for c = s.current; isDecimal(c); c = s.current {
206 s.saveAndAdvance()
207 }
208 return
209}
210
211func isHexadecimal(c rune) bool {
212 return '0' <= c && c <= '9' || 'a' <= c && c <= 'f' || 'A' <= c && c <= 'F'

Callers 1

readNumberMethod · 0.95

Calls 2

saveAndAdvanceMethod · 0.95
isDecimalFunction · 0.85

Tested by

no test coverage detected