text

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(text, query string, caseSensitive bool) bool

Contains checks if text contains query with case sensitivity option.

func ExtractPreview

func ExtractPreview(text, query string, caseSensitive bool, maxLen int) string

ExtractPreview extracts a preview snippet around a match. Returns empty string if query not found.

func FindIndex

func FindIndex(text, query string, caseSensitive bool) int

FindIndex finds the index of query in text with case sensitivity option. Returns -1 if not found.

func NormalizeQuery

func NormalizeQuery(query string, caseSensitive bool) string

NormalizeQuery normalizes a query for case-insensitive search.

Types

This section is empty.

Jump to

Keyboard shortcuts

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