text

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package text provides deterministic Unicode and regular-expression helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeUnicode

func NormalizeUnicode(value, form string) (string, error)

NormalizeUnicode applies the requested NFC, NFD, NFKC, or NFKD form.

func Options

func Options() []exprlib.Option

Options returns the Expr registrations for text helpers.

func RegexFind

func RegexFind(value, pattern string) ([]string, error)

RegexFind returns the first regular-expression match and its capture groups.

func RegexFindAll

func RegexFindAll(value, pattern string) ([][]string, error)

RegexFindAll returns every regular-expression match and its capture groups.

func RegexReplace

func RegexReplace(value, pattern, replacement string) (string, error)

RegexReplace replaces regular-expression matches using Go replacement syntax.

func RemoveDiacritics

func RemoveDiacritics(value string) (string, error)

RemoveDiacritics removes combining marks and returns NFC-normalized text.

Types

This section is empty.

Jump to

Keyboard shortcuts

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