go-rfc2396/mark/rune.go

11 lines
165 B
Go
Raw Normal View History

2023-12-08 00:30:28 +00:00
package mark
func RuneIs(value rune) bool {
switch value {
case '-' , '_' , '.' , '!' , '~' , '*' , '\'' , '(' , ')':
return true
default:
return false
}
}