Versions in this module Expand all Collapse all v0 v0.2.0 Jun 26, 2026 v0.1.0 May 5, 2026 Changes in this version + func Clone(a mem.Allocator, s string) string + func Compare(a, b string) int + func Contains(s, substr string) bool + func ContainsAny(s, chars string) bool + func ContainsFunc(s string, f RunePredicate) bool + func ContainsRune(s string, r rune) bool + func Count(s, substr string) int + func Cut(s, sep string) (string, string) + func CutPrefix(s, prefix string) (string, bool) + func CutSuffix(s, suffix string) (string, bool) + func Fields(a mem.Allocator, s string) []string + func FieldsFunc(a mem.Allocator, s string, f RunePredicate) []string + func HasPrefix(s, prefix string) bool + func HasSuffix(s, suffix string) bool + func Index(s, substr string) int + func IndexAny(s, chars string) int + func IndexByte(s string, c byte) int + func IndexFunc(s string, f RunePredicate) int + func IndexRune(s string, r rune) int + func Join(a mem.Allocator, elems []string, sep string) string + func LastIndex(s, substr string) int + func LastIndexByte(s string, c byte) int + func Map(a mem.Allocator, mapping RuneFunc, s string) string + func Repeat(a mem.Allocator, s string, count int) string + func Replace(a mem.Allocator, s, old, new string, n int) string + func ReplaceAll(a mem.Allocator, s, old, new string) string + func Split(a mem.Allocator, s, sep string) []string + func SplitAfter(a mem.Allocator, s, sep string) []string + func SplitN(a mem.Allocator, s, sep string, n int) []string + func ToLower(a mem.Allocator, s string) string + func ToUpper(a mem.Allocator, s string) string + func Trim(s, cutset string) string + func TrimFunc(s string, f RunePredicate) string + func TrimLeft(s, cutset string) string + func TrimPrefix(s, prefix string) string + func TrimRight(s, cutset string) string + func TrimSpace(s string) string + func TrimSuffix(s, suffix string) string + type Builder struct + func FixedBuilder(buf []byte) Builder + func NewBuilder(a mem.Allocator) Builder + func (b *Builder) Cap() int + func (b *Builder) Free() + func (b *Builder) Grow(n int) + func (b *Builder) Len() int + func (b *Builder) Reset() + func (b *Builder) String() string + func (b *Builder) Write(p []byte) (int, error) + func (b *Builder) WriteByte(c byte) error + func (b *Builder) WriteRune(r rune) (int, error) + func (b *Builder) WriteString(s string) (int, error) + type Reader struct + func NewReader(s string) Reader + func (r *Reader) Len() int + func (r *Reader) Read(b []byte) (int, error) + func (r *Reader) ReadAt(b []byte, off int64) (int, error) + func (r *Reader) ReadByte() (byte, error) + func (r *Reader) ReadRune() io.RuneSizeResult + func (r *Reader) Reset(s string) + func (r *Reader) Seek(offset int64, whence int) (int64, error) + func (r *Reader) Size() int64 + func (r *Reader) UnreadByte() error + func (r *Reader) UnreadRune() error + func (r *Reader) WriteTo(w io.Writer) (int64, error) + type RuneFunc func(rune) rune + type RunePredicate func(rune) bool