initial commits

master
Charles Iliya Krempeaux 2023-10-04 17:38:18 +09:00
parent 17e5e6492c
commit 94f36ac26b
1 changed files with 12 additions and 0 deletions

12
reserved.go 100644
View File

@ -0,0 +1,12 @@
package rfc2234
// IsReserved returns true if value of 'r' matches 'reserved' as defined in IETF RFC-2234:
//
// reserved = gen-delims / sub-delims
//
// gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"
//
// sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
func IsReserved(r rune) bool {
return IsGenDelim(r) || IsSubDelim(r)
}