initial commits
parent
35bab0d265
commit
0c1e074cc9
|
@ -0,0 +1,8 @@
|
||||||
|
package char
|
||||||
|
|
||||||
|
// ByteIsChar returns whether the byte is a 'CHAR', as defined by IETF RFC-2616.
|
||||||
|
//
|
||||||
|
// CHAR = <any US-ASCII character (octets 0 - 127)>
|
||||||
|
func ByteIsChar(value byte) bool {
|
||||||
|
return value <= 127
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,8 @@
|
||||||
|
package char
|
||||||
|
|
||||||
|
// RuneIsChar returns whether the rune is a 'CHAR', as defined by IETF RFC-2616.
|
||||||
|
//
|
||||||
|
// CHAR = <any US-ASCII character (octets 0 - 127)>
|
||||||
|
func RuneIsChar(value rune) bool {
|
||||||
|
return value <= 127
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue