trigram

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package trigram supports a trigram alphabet for dupy.

Index

Constants

View Source
const (
	NumLetters    = 37 // 0-9, a-z, _
	NumTrigrams   = NumLetters * NumLetters * NumLetters
	COther      C = 36
)

Variables

This section is empty.

Functions

func FromToken

func FromToken(dst []T, start T, tok token.T) (T, []T)

func Unletter

func Unletter(c byte) rune

func VisitTokens

func VisitTokens(toks []token.T, fn func(T))

Types

type C

type C byte

func Letter

func Letter(r rune) C

type T

type T uint16

func FromTokens

func FromTokens(dst []T, toks []token.T) []T

func VisitToken

func VisitToken(start T, tok token.T, fn func(T)) T

func Zero

func Zero() T

func (T) Shift

func (t T) Shift(c C) T

func (T) String

func (t T) String() string

Jump to

Keyboard shortcuts

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