10 examples of 'adigit' in Go

Every line of 'adigit' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Go code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
4427func (s *Ean14_packagingContext) DIGIT_2() antlr.TerminalNode {
4428 return s.GetToken(gtinParserDIGIT_2, 0)
4429}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

3306func (s *FloatValContext) DIGIT(i int) antlr.TerminalNode {
3307 return s.GetToken(FilterExpressionDIGIT, i)
3308}
446func (t *tokenizer) readDigits(c int, w io.ByteWriter) (int, error) {
447 if !isDigit(c) {
448 return c, nil
449 }
450 w.WriteByte(byte(c))
451
452 return t.readRadixDigits(isDigit, w)
453}
3298func (s *Gs1_prefix_bookland_1Context) DIGIT_3() antlr.TerminalNode {
3299 return s.GetToken(gtinParserDIGIT_3, 0)
3300}
49func (buf *buffer) twoDigits(i, d int) int {
50 buf.tmp[i+1] = digits[d%10]
51 d /= 10
52 buf.tmp[i] = digits[d%10]
53 return 2
54}
144func (p *Parser) parseTwoDigitCardinal() (int64, error) {
145 switch val := value[p.cur.Lit]; p.cur.Typ {
146 case token.ONES, token.VIGESIMAL:
147 return val, nil
148 case token.TENS:
149 n := val
150 if p.peekIs(token.DASH) {
151 p.next()
152 if !p.peekIs(token.ONES) {
153 return 0, errCardinal
154 }
155 p.next()
156 n += value[p.cur.Lit]
157 }
158 return n, nil
159 default:
160 return 0, errCardinal
161 }
162}
251func (s *Scanner) scanDigit() (tok Token, lit string) {
252 var buf bytes.Buffer
253 buf.WriteRune(s.read())
254 tok = INT
255 for {
256 if ch := s.read(); ch == eof {
257 break
258 } else if isDigit(ch) {
259 buf.WriteRune(ch)
260 } else if ch == '.' {
261 tok = FLOAT
262 buf.WriteByte('.')
263 } else {
264 s.unread()
265 break
266 }
267 }
268
269 return tok, buf.String()
270}
184func readDigit(d string) (int32, bool) {
185 if len(d) == 0 || (len(d) >= 2 && d[0] == '0') {
186 return 0, false
187 }
188 for _, c := range d {
189 if c < '0' || c > '9' {
190 return 0, false
191 }
192 }
193 return int32(Atof(d)), true
194}
3791func (s *IssnContext) Any_digit(i int) IAny_digitContext {
3792 var t = s.GetTypedRuleContext(reflect.TypeOf((*IAny_digitContext)(nil)).Elem(), i)
3793
3794 if t == nil {
3795 return nil
3796 }
3797
3798 return t.(IAny_digitContext)
3799}
1428func (s *Upc_a_5Context) Any_digit(i int) IAny_digitContext {
1429 var t = s.GetTypedRuleContext(reflect.TypeOf((*IAny_digitContext)(nil)).Elem(), i)
1430
1431 if t == nil {
1432 return nil
1433 }
1434
1435 return t.(IAny_digitContext)
1436}

Related snippets