Documentation
¶
Index ¶
- func AppendSplit[T byteseq.Byteseq](buf []T, x, sep T, n int) []T
- func AppendSplitBytes(buf [][]byte, p, sep []byte, n int) [][]byte
- func AppendSplitEntry[T byteseq.Byteseq](buf []entry.Entry64, s, sep T, n int) []entry.Entry64
- func AppendSplitEntryBytes(buf []entry.Entry64, p, sep []byte, n int) []entry.Entry64
- func AppendSplitEntryString(buf []entry.Entry64, s, sep string, n int) []entry.Entry64
- func AppendSplitString(buf []string, s, sep string, n int) []string
- func Copy[T byteseq.Byteseq](p T) T
- func CopyBytes(p []byte) (r []byte)
- func CopyString(s string) (r string)
- func EqualSet[T byteseq.Byteseq](a, b []T) bool
- func Grow(p []byte, newLen int) []byte
- func GrowDelta(p []byte, delta int) []byte
- func HasByte[T byteseq.Q](x T, c byte) bool
- func HasByteAt[T byteseq.Q](x T, c byte, at int) bool
- func HasByteAtBytes(p []byte, c byte, at int) bool
- func HasByteAtString(s string, c byte, at int) bool
- func HasByteBytes(p []byte, c byte) bool
- func HasByteLUR(p []byte, b byte) bool
- func HasByteString(s string, c byte) bool
- func IndexAnyAt[T byteseq.Q](x, sep T, at int) int
- func IndexAnyAtBytes(p, sep []byte, at int) int
- func IndexAnyAtString(s, sep string, at int) int
- func IndexAt[T byteseq.Q](x, sep T, at int) int
- func IndexAtBytes(p, sep []byte, at int) int
- func IndexAtString(s, sep string, at int) int
- func IndexByteAt[T byteseq.Q](x T, c byte, at int) int
- func IndexByteAtBytes(p []byte, c byte, at int) int
- func IndexByteAtLUR(p []byte, b byte, at int) int
- func IndexByteAtString(s string, c byte, at int) int
- func Map[T byteseq.Byteseq](mapping func(r rune) rune, x T) T
- func MapBytes(mapping func(r rune) rune, p []byte) []byte
- func MapString(mapping func(r rune) rune, s string) string
- func SkipBytesFmt4(p []byte, offset int) (int, bool)
- func SkipFmt4[T byteseq.Q](x T, offset int) (int, bool)
- func SkipStringFmt4(s string, offset int) (int, bool)
- func ToLower[T byteseq.Byteseq](p T) T
- func ToLowerBytes(p []byte) []byte
- func ToLowerString(p string) string
- func ToTitle[T byteseq.Byteseq](p T) T
- func ToTitleBytes(p []byte) []byte
- func ToTitleString(p string) string
- func ToUpper[T byteseq.Byteseq](p T) T
- func ToUpperBytes(p []byte) []byte
- func ToUpperString(p string) string
- func Trim[T byteseq.Q](x, cut T) T
- func TrimBytes(p, cut []byte) []byte
- func TrimBytesFmt4(p []byte) []byte
- func TrimFmt4[T byteseq.Q](x T) T
- func TrimLeft[T byteseq.Q](p, cut T) T
- func TrimLeftBytes(p, cut []byte) []byte
- func TrimLeftBytesFmt4(p []byte) []byte
- func TrimLeftFmt4[T byteseq.Q](x T) T
- func TrimLeftString(p, cut string) string
- func TrimLeftStringFmt4(p string) string
- func TrimRight[T byteseq.Q](p, cut T) T
- func TrimRightBytes(p, cut []byte) []byte
- func TrimRightBytesFmt4(p []byte) []byte
- func TrimRightFmt4[T byteseq.Q](x T) T
- func TrimRightString(p, cut string) string
- func TrimRightStringFmt4(p string) string
- func TrimString(p, cut string) string
- func TrimStringFmt4(p string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendSplit ¶
AppendSplit splits x to buf using sep as separator.
This function if an alloc-free replacement of bytes.Split() function.
func AppendSplitBytes ¶ added in v1.0.4
AppendSplitBytes splits p to buf using sep as separator.
func AppendSplitEntry ¶ added in v1.0.4
AppendSplitEntry splits x to buf using sep as separator.
buf contains entry.Entry64 records instead of substrings.
func AppendSplitEntryBytes ¶ added in v1.0.4
AppendSplitEntryBytes splits p to buf using sep as separator.
func AppendSplitEntryString ¶ added in v1.0.4
AppendSplitEntryString splits s to buf using sep as separator.
func AppendSplitString ¶ added in v1.0.4
AppendSplitString splits s to buf using sep as separator.
func CopyString ¶ added in v1.0.7
CopyString makes a copy of string.
func Grow ¶
Grow increases length of the byte array.
Two cases are possible: * byte array has enough space; * need to add extra space to the array.
func HasByteAtBytes ¶ added in v1.0.4
HasByteAtBytes checks if c is present in p (from position at).
func HasByteAtString ¶ added in v1.0.4
HasByteAtString checks if c is present in p (from position at).
func HasByteBytes ¶ added in v1.0.4
HasByteBytes checks if c is present in p.
func HasByteLUR ¶ added in v1.0.2
HasByteLUR checks if p contains b.
This function designed to use with the largest input.
func HasByteString ¶ added in v1.0.4
HasByteString checks if c is present in p.
func IndexAnyAt ¶
IndexAnyAt is equal to bytes.IndexAny() but doesn't consider occurrences of sep in p[:at].
func IndexAnyAtBytes ¶ added in v1.0.4
IndexAnyAtBytes is equal to bytes.IndexAny() but doesn't consider occurrences of sep in p[:at].
func IndexAnyAtString ¶ added in v1.0.4
IndexAnyAtString is equal to bytes.IndexAny() but doesn't consider occurrences of sep in p[:at].
func IndexAtBytes ¶ added in v1.0.4
IndexAtBytes is equal to bytes.Index() but doesn't consider occurrences of sep in p[:at].
func IndexAtString ¶ added in v1.0.4
IndexAtString is equal to bytes.Index() but doesn't consider occurrences of sep in p[:at].
func IndexByteAt ¶ added in v1.0.4
IndexByteAt returns the index of the first instance of c in p (from position at), or -1 if c is not present in p.
func IndexByteAtBytes ¶ added in v1.0.4
IndexByteAtBytes returns the index of the first instance of c in p (from position at), or -1 if c is not present in p.
func IndexByteAtLUR ¶ added in v1.0.2
IndexByteAtLUR is a loop unrolling version of IndexAtBytes().
func IndexByteAtString ¶ added in v1.0.4
IndexByteAtString returns the index of the first instance of c in p (from position at), or -1 if c is not present in p.
func Map ¶
Map returns modified x with all its characters modified according to the mapping function.
See bytes.Map()/strings.Map() function for details.
func SkipBytesFmt4 ¶ added in v1.0.5
SkipBytesFmt4 moves offset to first non-fmt4 byte in bytes p. Returns new offset and EOF flag.
func SkipFmt4 ¶ added in v1.0.5
SkipFmt4 moves offset to first non-fmt4 byte in x. Returns new offset and EOF flag.
func SkipStringFmt4 ¶ added in v1.0.5
SkipStringFmt4 moves offset to first non-fmt4 byte in string s. Returns new offset and EOF flag.
func ToLowerBytes ¶ added in v1.0.7
func ToLowerString ¶ added in v1.0.7
func ToTitleBytes ¶ added in v1.0.7
func ToTitleString ¶ added in v1.0.7
func ToUpperBytes ¶ added in v1.0.7
func ToUpperString ¶ added in v1.0.7
func TrimBytesFmt4 ¶ added in v1.0.4
TrimBytesFmt4 removes default formatting bytes from both side of p.
func TrimLeftBytes ¶ added in v1.0.4
TrimLeftBytes is a left version of TrimBytes.
func TrimLeftBytesFmt4 ¶ added in v1.0.4
TrimLeftBytesFmt4 removes default formatting bytes from left size of p.
func TrimLeftFmt4 ¶ added in v1.0.4
TrimLeftFmt4 is a left version of TrimFmt4.
func TrimLeftString ¶ added in v1.0.4
TrimLeftString is a left version of TrimString.
func TrimLeftStringFmt4 ¶ added in v1.0.4
TrimLeftStringFmt4 removes default formatting bytes from left size of p.
func TrimRightBytes ¶ added in v1.0.4
TrimRightBytes is a right version of TrimBytes.
func TrimRightBytesFmt4 ¶ added in v1.0.4
TrimRightBytesFmt4 removes default formatting bytes from right size of p.
func TrimRightFmt4 ¶ added in v1.0.4
TrimRightFmt4 is a right version of TrimFmt4.
func TrimRightString ¶ added in v1.0.4
TrimRightString is a right version of TrimString.
func TrimRightStringFmt4 ¶ added in v1.0.4
TrimRightStringFmt4 removes default formatting bytes from right size of p.
func TrimString ¶ added in v1.0.4
TrimString makes fast and alloc-free trim over string.
func TrimStringFmt4 ¶ added in v1.0.4
TrimStringFmt4 removes default formatting bytes from both side of p.
Types ¶
This section is empty.