mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
drop unused isHex and IsInteger functions
This commit is contained in:
parent
eb0640f175
commit
d4fb807664
1 changed files with 0 additions and 14 deletions
|
|
@ -335,20 +335,6 @@ func isAlpha(ch rune) bool {
|
|||
return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')
|
||||
}
|
||||
|
||||
func isHex(ch rune) bool {
|
||||
return isDigit(ch) || (ch >= 'a' && ch <= 'f') || (ch >= 'A' && ch <= 'F')
|
||||
}
|
||||
|
||||
func isUnquotedIdent(ch rune) bool {
|
||||
return isAlpha(ch) || isDigit(ch) || ch == '_' || ch == '-'
|
||||
}
|
||||
|
||||
// IsInteger returns true if s only contains digits.
|
||||
func IsInteger(s string) bool {
|
||||
for _, ch := range s {
|
||||
if !isDigit(ch) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return s != ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue