Documentation
¶
Overview ¶
Package text provides deterministic Unicode and regular-expression helpers.
Index ¶
- func NormalizeUnicode(value, form string) (string, error)
- func Options() []exprlib.Option
- func RegexFind(value, pattern string) ([]string, error)
- func RegexFindAll(value, pattern string) ([][]string, error)
- func RegexReplace(value, pattern, replacement string) (string, error)
- func RemoveDiacritics(value string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeUnicode ¶
NormalizeUnicode applies the requested NFC, NFD, NFKC, or NFKD form.
func RegexFindAll ¶
RegexFindAll returns every regular-expression match and its capture groups.
func RegexReplace ¶
RegexReplace replaces regular-expression matches using Go replacement syntax.
func RemoveDiacritics ¶
RemoveDiacritics removes combining marks and returns NFC-normalized text.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.