foldcase

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsFolded

func ContainsFolded(lowerValue, marker string) bool

ContainsFolded reports whether lowerValue contains marker after applying the simple lower-case matching policy to marker. lowerValue must already be normalized with Lower so callers can reuse one normalized haystack across many markers.

func EitherSubstring

func EitherSubstring(a, b string) bool

EitherSubstring reports whether either value contains the other after applying Goncho's simple lower-case matching policy to both values.

func HasPrefixFolded

func HasPrefixFolded(lowerValue, prefix string) bool

HasPrefixFolded reports whether lowerValue starts with prefix after applying the simple lower-case matching policy to prefix. lowerValue must already be normalized with Lower.

func IndexFolded

func IndexFolded(lowerValue, marker string) int

IndexFolded returns the byte index of marker in lowerValue after applying the simple lower-case matching policy to marker. lowerValue must already be normalized with Lower.

func Lower

func Lower(value string) string

Lower applies Goncho's simple lower-case matching policy for substring and prefix classifiers. It intentionally does not perform locale-specific normalization beyond strings.ToLower.

Types

This section is empty.

Jump to

Keyboard shortcuts

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