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, suffix []byte) bool
- func HasSuffixFoldString(s, suffix 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 ¶ added in v0.2.14
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 ¶ added in v0.2.14
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 ¶ added in v0.2.14
func HasPrefixFoldString ¶ added in v0.2.14
func HasSuffixFold ¶ added in v0.2.14
func HasSuffixFoldString ¶ added in v0.2.14
func ValidPrint ¶ added in v0.1.2
Valid returns true if b contains only printable ASCII characters.
func ValidPrintByte ¶ added in v0.1.2
ValidBytes returns true if b is an ASCII character.
func ValidPrintRune ¶ added in v0.1.2
ValidBytes returns true if b is an ASCII character.
func ValidPrintString ¶ added in v0.1.2
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.