thai

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package thai is a subpackage that provides additional string sanitization functions that are customized for Thai characters and scripts.

Index

Constants

This section is empty.

Variables

AdditionalMapping contains a slice of all string transformers chained together which is used as additional mapping for PRECIS profile.

View Source
var BigramRecombineTransformer transform.Transformer = &bigramRecombineTransformer{}

BigramRecombineTransformer is a Unicode stream transformer object which removes all leading and trailing white-spaces, then it reduces all inter-word white-spaces into a single normal space.

PrecisProfile is a Unicode PRECIS profile which prepare strings for a more secure comparison.

View Source
var RemoveRepeatedMarksTransformer transform.SpanningTransformer = &removeRepeatedMarksSpanningTransformer{}

RemoveRepeatedMarksTransformer is a Unicode stream transformer object which removes repeated Thai ascending and descending marks except the first.

View Source
var Sanitize = factory.MakeStringTransformFunction(
	PrecisProfile.NewTransformer(),
)

Sanitize extends on the LatinExtendedSanitize by additionally sanitize an input string containing Thai scripts.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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