initial commits
parent
6390fce105
commit
cd585814c3
|
@ -0,0 +1,18 @@
|
|||
package hex
|
||||
|
||||
import (
|
||||
"sourcecode.social/reiver/go-rfc2396/digit"
|
||||
)
|
||||
|
||||
func ByteIs(value byte) bool {
|
||||
switch {
|
||||
case digit.ByteIs(value):
|
||||
return true
|
||||
case 'A' <= value && value <= 'F':
|
||||
return true
|
||||
case 'a' <= value && value <= 'f':
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,18 @@
|
|||
package hex
|
||||
|
||||
import (
|
||||
"sourcecode.social/reiver/go-rfc2396/digit"
|
||||
)
|
||||
|
||||
func RuneIs(value rune) bool {
|
||||
switch {
|
||||
case digit.RuneIs(value):
|
||||
return true
|
||||
case 'A' <= value && value <= 'F':
|
||||
return true
|
||||
case 'a' <= value && value <= 'f':
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue