github.com/cloudflare/circl@v1.5.0/abe/cpabe/tkn20/internal/dsl/util.go (about)

     1  package dsl
     2  
     3  func isDigit(c uint8) bool {
     4  	return c >= '0' && c <= '9'
     5  }
     6  
     7  func isAlpha(c uint8) bool {
     8  	return (c >= 'a' && c <= 'z') ||
     9  		(c >= 'A' && c <= 'Z') ||
    10  		c == '_'
    11  }
    12  
    13  func isAlphaNumeric(c uint8) bool {
    14  	return isAlpha(c) || isDigit(c)
    15  }