initial commits

master
Charles Iliya Krempeaux 2023-12-06 08:27:42 -08:00
parent 35bab0d265
commit 0c1e074cc9
4 changed files with 2186 additions and 0 deletions

8
char/byte.go 100644
View File

@ -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
}

1085
char/byte_test.go 100644

File diff suppressed because it is too large Load Diff

8
char/rune.go 100644
View File

@ -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
}

1085
char/rune_test.go 100644

File diff suppressed because it is too large Load Diff