go-rfc2616/char/rune.go

9 lines
208 B
Go

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
}