simd

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsAny

func ContainsAny(s string, substrs []string) bool

ContainsAny checks if string contains any of the substrings

func ContainsWord

func ContainsWord(s, word string) bool

ContainsWord checks if string contains word (space-delimited)

func FastContains added in v0.28.0

func FastContains(s, substr string) bool

FastContains checks if string contains substring (optimized for small patterns)

func FastCountBytes added in v0.28.0

func FastCountBytes(data string, target byte) int

FastCountBytes counts bytes using SIMD-optimized loop

func FastEqual added in v0.28.0

func FastEqual(a, b string) bool

FastEqual compares strings with early exit

func FastHasANSI added in v0.28.0

func FastHasANSI(data string) bool

FastHasANSI checks for ANSI sequences using SIMD-friendly loop

func FastLower added in v0.28.0

func FastLower(s string) string

FastLower ASCII lowercase conversion (optimized with unsafe)

func HasANSI

func HasANSI(data string) bool

HasANSI is an alias for FastHasANSI for backward compatibility

func IsWordChar

func IsWordChar(c byte) bool

IsWordChar checks if byte is a word character

func Process added in v0.28.0

func Process(data string) string

Process is an alias for StripANSI for backward compatibility

func SplitWords

func SplitWords(input string) []string

SplitWords splits string into words (optimized)

func StripANSI

func StripANSI(input string) string

StripANSI removes ANSI sequences using optimized byte operations

Types

This section is empty.

Jump to

Keyboard shortcuts

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