Documentation
¶
Index ¶
- func ContainsAny(s string, substrs []string) bool
- func ContainsWord(s, word string) bool
- func FastContains(s, substr string) bool
- func FastCountBytes(data string, target byte) int
- func FastEqual(a, b string) bool
- func FastHasANSI(data string) bool
- func FastLower(s string) string
- func HasANSI(data string) bool
- func IsWordChar(c byte) bool
- func Process(data string) string
- func SplitWords(input string) []string
- func StripANSI(input string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAny ¶
ContainsAny checks if string contains any of the substrings
func ContainsWord ¶
ContainsWord checks if string contains word (space-delimited)
func FastContains ¶ added in v0.28.0
FastContains checks if string contains substring (optimized for small patterns)
func FastCountBytes ¶ added in v0.28.0
FastCountBytes counts bytes using SIMD-optimized loop
func FastHasANSI ¶ added in v0.28.0
FastHasANSI checks for ANSI sequences using SIMD-friendly loop
func SplitWords ¶
SplitWords splits string into words (optimized)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.