Lines Matching defs:byte
19 func Equal(a, b []byte) bool {
27 func Compare(a, b []byte) int {
33 func explode(s []byte, n int) [][]byte {
56 func Count(s, sep []byte) int {
76 func Contains(b, subslice []byte) bool {
81 func ContainsAny(b []byte, chars string) bool {
86 func ContainsRune(b []byte, r rune) bool {
91 func ContainsFunc(b []byte, f func(rune) bool) bool {
96 func IndexByte(b []byte, c byte) int {
100 func indexBytePortable(s []byte, c byte) int {
110 func LastIndex(s, sep []byte) int {
129 func LastIndexByte(s []byte, c byte) int {
138 func IndexRune(s []byte, r rune) int {
164 func IndexAny(s []byte, chars string) int {
242 func LastIndexAny(s []byte, chars string) int {
324 func genSplit(s, sep []byte, sepSave, n int) [][]byte {
363 func SplitN(s, sep []byte, n int) [][]byte { return genSplit(s, sep, 0, n) }
372 func SplitAfterN(s, sep []byte, n int) [][]byte {
382 func Split(s, sep []byte) [][]byte { return genSplit(s, sep, 0, -1) }
388 func SplitAfter(s, sep []byte) [][]byte {
398 func Fields(s []byte) [][]byte {
455 func FieldsFunc(s []byte, f func(rune) bool) [][]byte {
504 func Join(s [][]byte, sep []byte) []byte {
537 func HasPrefix(s, prefix []byte) bool {
542 func HasSuffix(s, suffix []byte) bool {
550 func Map(mapping func(r rune) rune, s []byte) []byte {
586 func Repeat(b []byte, count int) []byte {
638 func ToUpper(s []byte) []byte {
669 func ToLower(s []byte) []byte {
698 func ToTitle(s []byte) []byte { return Map(unicode.ToTitle, s) }
702 func ToUpperSpecial(c unicode.SpecialCase, s []byte) []byte {
708 func ToLowerSpecial(c unicode.SpecialCase, s []byte) []byte {
714 func ToTitleSpecial(c unicode.SpecialCase, s []byte) []byte {
720 func ToValidUTF8(s, replacement []byte) []byte {
777 func Title(s []byte) []byte {
796 func TrimLeftFunc(s []byte, f func(r rune) bool) []byte {
806 func TrimRightFunc(s []byte, f func(r rune) bool) []byte {
819 func TrimFunc(s []byte, f func(r rune) bool) []byte {
825 func TrimPrefix(s, prefix []byte) []byte {
834 func TrimSuffix(s, suffix []byte) []byte {
844 func IndexFunc(s []byte, f func(r rune) bool) int {
851 func LastIndexFunc(s []byte, f func(r rune) bool) int {
858 func indexFunc(s []byte, f func(r rune) bool, truth bool) int {
877 func lastIndexFunc(s []byte, f func(r rune) bool, truth bool) int {
915 func (as *asciiSet) contains(c byte) bool {
933 func Trim(s []byte, cutset string) []byte {
952 func TrimLeft(s []byte, cutset string) []byte {
969 func trimLeftByte(s []byte, c byte) []byte {
980 func trimLeftASCII(s []byte, as *asciiSet) []byte {
994 func trimLeftUnicode(s []byte, cutset string) []byte {
1014 func TrimRight(s []byte, cutset string) []byte {
1027 func trimRightByte(s []byte, c byte) []byte {
1034 func trimRightASCII(s []byte, as *asciiSet) []byte {
1044 func trimRightUnicode(s []byte, cutset string) []byte {
1060 func TrimSpace(s []byte) []byte {
1100 func Runes(s []byte) []rune {
1118 func Replace(s, old, new []byte, n int) []byte {
1159 func ReplaceAll(s, old, new []byte) []byte {
1166 func EqualFold(s, t []byte) bool {
1250 func Index(s, sep []byte) int {
1343 func Cut(s, sep []byte) (before, after []byte, found bool) {
1353 func Clone(b []byte) []byte {
1366 func CutPrefix(s, prefix []byte) (after []byte, found bool) {
1379 func CutSuffix(s, suffix []byte) (before []byte, found bool) {