strings

package
v0.0.0-...-375d9ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

This file has automatically been generated on Wed Feb 26 15:50:52 +05 2020. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuilderCap

func BuilderCap(b *strings.Builder) int

func BuilderLen

func BuilderLen(b *strings.Builder) int

func BuilderString

func BuilderString(b *strings.Builder) string

func BuilderWrite

func BuilderWrite(b *strings.Builder, p []byte) (int, error)

func BuilderWriteByte

func BuilderWriteByte(b *strings.Builder, c byte) error

func BuilderWriteRune

func BuilderWriteRune(b *strings.Builder, r rune) (int, error)

func BuilderWriteString

func BuilderWriteString(b *strings.Builder, s string) (int, error)

func Compare

func Compare(a, b string) int

func Contains

func Contains(s, substr string) bool

func ContainsAny

func ContainsAny(s, chars string) bool

func ContainsRune

func ContainsRune(s string, r rune) bool

func Count

func Count(s, substr string) int

func EqualFold

func EqualFold(s, t string) bool

func Fields

func Fields(s string) []string

func FieldsFunc

func FieldsFunc(s string, f func(rune) bool) []string

func HasPrefix

func HasPrefix(s, prefix string) bool

func HasSuffix

func HasSuffix(s, suffix string) bool

func Index

func Index(s, substr string) int

func IndexAny

func IndexAny(s, chars string) int

func IndexByte

func IndexByte(s string, c byte) int

func IndexFunc

func IndexFunc(s string, f func(rune) bool) int

func IndexRune

func IndexRune(s string, r rune) int

func Join

func Join(elems []string, sep string) string

func LastIndex

func LastIndex(s, substr string) int

func LastIndexAny

func LastIndexAny(s, chars string) int

func LastIndexByte

func LastIndexByte(s string, c byte) int

func LastIndexFunc

func LastIndexFunc(s string, f func(rune) bool) int

func Map

func Map(mapping func(rune) rune, s string) string

func NewReader

func NewReader(s string) *strings.Reader

func NewReplacer

func NewReplacer(oldnew ...string) *strings.Replacer

func ReaderLen

func ReaderLen(r *strings.Reader) int

func ReaderRead

func ReaderRead(r *strings.Reader, b []byte) (int, error)

func ReaderReadAt

func ReaderReadAt(r *strings.Reader, b []byte, off int64) (int, error)

func ReaderReadByte

func ReaderReadByte(r *strings.Reader) (byte, error)

func ReaderReadRune

func ReaderReadRune(r *strings.Reader) (rune, int, error)

func ReaderSeek

func ReaderSeek(r *strings.Reader, offset int64, whence int) (int64, error)

func ReaderSize

func ReaderSize(r *strings.Reader) int64

func ReaderUnreadByte

func ReaderUnreadByte(r *strings.Reader) error

func ReaderUnreadRune

func ReaderUnreadRune(r *strings.Reader) error

func ReaderWriteTo

func ReaderWriteTo(r *strings.Reader, w io.Writer) (int64, error)

func Repeat

func Repeat(s string, count int) string

func Replace

func Replace(s, old, new string, n int) string

func ReplaceAll

func ReplaceAll(s, old, new string) string

func ReplacerReplace

func ReplacerReplace(r *strings.Replacer, s string) string

func ReplacerWriteString

func ReplacerWriteString(r *strings.Replacer, w io.Writer, s string) (int, error)

func Split

func Split(s, sep string) []string

func SplitAfter

func SplitAfter(s, sep string) []string

func SplitAfterN

func SplitAfterN(s, sep string, n int) []string

func SplitN

func SplitN(s, sep string, n int) []string

func Title

func Title(s string) string

func ToLower

func ToLower(s string) string

func ToLowerSpecial

func ToLowerSpecial(c unicode.SpecialCase, s string) string

func ToTitle

func ToTitle(s string) string

func ToTitleSpecial

func ToTitleSpecial(c unicode.SpecialCase, s string) string

func ToUpper

func ToUpper(s string) string

func ToUpperSpecial

func ToUpperSpecial(c unicode.SpecialCase, s string) string

func Trim

func Trim(s string, cutset string) string

func TrimFunc

func TrimFunc(s string, f func(rune) bool) string

func TrimLeft

func TrimLeft(s string, cutset string) string

func TrimLeftFunc

func TrimLeftFunc(s string, f func(rune) bool) string

func TrimPrefix

func TrimPrefix(s, prefix string) string

func TrimRight

func TrimRight(s string, cutset string) string

func TrimRightFunc

func TrimRightFunc(s string, f func(rune) bool) string

func TrimSpace

func TrimSpace(s string) string

func TrimSuffix

func TrimSuffix(s, suffix string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL