metaphone

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cregions = [][]rune{
	[]rune("CIA"),
}
View Source
var Gregions = [][]rune{
	[]rune("GN"),
	[]rune("GNED"),
}
View Source
var Sregions = [][]rune{
	[]rune("SH"),
	[]rune("SIO"),
	[]rune("SIA"),
}
View Source
var Tregions = [][]rune{
	[]rune("TIA"),
	[]rune("TIO"),
	[]rune("TCH"),
	[]rune("TH"),
}

Functions

This section is empty.

Types

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(opts ...EncoderOption) *Encoder

func (*Encoder) Encode

func (e *Encoder) Encode(input string) string

func (*Encoder) SetOption

func (e *Encoder) SetOption(opt EncoderOption)

SetOption set encoder option. Method is not safe for concurrent usage

type EncoderOption

type EncoderOption func(e *Encoder)

EncoderOption func to provide encoder configuration parameter

func WithMaxLen

func WithMaxLen(maxLen int) EncoderOption

WithMaxLen Set max length of the generated token

Jump to

Keyboard shortcuts

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