guardtext

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollapseWhitespace

func CollapseWhitespace(text string) string

func ComposeJamoSequences

func ComposeJamoSequences(text string) string

func ContainsSuspiciousBase64

func ContainsSuspiciousBase64(input string) bool

func DecodeBase64Candidate

func DecodeBase64Candidate(input string) ([]byte, error)

func DecodeCandidates

func DecodeCandidates(input string) []string

func IsReadableText

func IsReadableText(data []byte) bool

func JoinShortSeparators

func JoinShortSeparators(text string, maxRun int) string

func Normalize

func Normalize(text string) string

func NormalizePostProcess

func NormalizePostProcess(text string) string

func SanitizeUTF8

func SanitizeUTF8(text string) string

func StripControlChars

func StripControlChars(text string) string

func StripFormatAndCombining

func StripFormatAndCombining(text string) string

Types

type Views

type Views struct {
	Raw    string
	Norm   string
	Joined string
}

func NormalizeViews

func NormalizeViews(text string) Views

Jump to

Keyboard shortcuts

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