runedelimiterpretokenizer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuneDelimiterPreTokenizer

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

RuneDelimiterPreTokenizer allows the generation of pre-tokens splitting by a specific rune.

func New

func New(delimiter rune) *RuneDelimiterPreTokenizer

New returns a new RuneDelimiterPreTokenizer, setting the given rune as delimiter.

func (*RuneDelimiterPreTokenizer) PreTokenize

PreTokenize splits the NormalizedString by rune delimiter.

Jump to

Keyboard shortcuts

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