Documentation ¶
Index ¶
- func EqualFold(a, b []byte) bool
- func EqualFoldString(a, b string) bool
- func HasPrefixFold(s, prefix []byte) bool
- func HasPrefixFoldString(s, prefix string) bool
- func HasSuffixFold(s, prefix []byte) bool
- func HasSuffixFoldString(s, prefix string) bool
- func Valid(b []byte) bool
- func ValidByte(b byte) bool
- func ValidPrint(b []byte) bool
- func ValidPrintByte(b byte) bool
- func ValidPrintRune(r rune) bool
- func ValidPrintString(s string) bool
- func ValidRune(r rune) bool
- func ValidString(s string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualFold ¶
EqualFold is a version of bytes.EqualFold designed to work on ASCII input instead of UTF-8.
When the program has guarantees that the input is composed of ASCII characters only, it allows for greater optimizations.
func EqualFoldString ¶
EqualFoldString is a version of strings.EqualFold designed to work on ASCII input instead of UTF-8.
When the program has guarantees that the input is composed of ASCII characters only, it allows for greater optimizations.
func HasPrefixFold ¶
func HasPrefixFoldString ¶
func HasSuffixFold ¶
func HasSuffixFoldString ¶
func ValidPrint ¶
Valid returns true if b contains only printable ASCII characters.
func ValidPrintByte ¶
ValidBytes returns true if b is an ASCII character.
func ValidPrintRune ¶
ValidBytes returns true if b is an ASCII character.
func ValidPrintString ¶
ValidString returns true if s contains only printable ASCII characters.
func ValidString ¶
ValidString returns true if s contains only ASCII characters.
Types ¶
This section is empty.