Documentation ¶
Overview ¶
Package byteutil contains byte (string) processing functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteContainsFold ¶
ByteContainsFold is like bytes.Contains but uses Unicode case-folding.
func ByteHasPrefixFold ¶
HasPrefixFold is like strings.HasPrefix but uses Unicode case-folding.
func ByteIndexFold ¶
ByteIndexFold is like bytes.Contains but uses Unicode case-folding.
func BytesToString ¶
BytesToString returns the []byte as a string, unsafe.
func EqualFoldRune ¶
EqualFoldRune compares a and b runes whether they fold equally.
The code comes from strings.EqualFold, but shortened to only one rune.
func StringToBytes ¶
StringToBytes returns the string as a []byte, unsafe.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.