package
0.0.0-20190912100236-53e5711c875d
Repository: https://github.com/tsaikd/tools.git
Documentation: pkg.go.dev

# Functions

LastSegment returns the substring representing the last segment from the input, where each byte has an associated RuneRole in the roles slice.
NewMatcher returns a new fuzzy matcher for scoring candidates against the provided pattern.
RuneRoles detects the roles of each byte rune in an input string and stores it in the output slice.
ToLower transforms the input string to lower case, which is stored in the output byte slice.
Words find word delimiters in an input based on its bytes' mappings to rune roles.

# Constants

Filename represents a filepath input type with '/' segment delimitors.
MaxInputSize is the maximum size of the input scored against the fuzzy matcher.
MaxPatternSize is the maximum size of the pattern used to construct the fuzzy matcher.
RHead specifies a rune which is the first character in a word in the input.
RNone specifies a rune without any role in the input (i.e., whitespace/non-ASCII).
RSep specifies a rune with the role of segment separator.
RTail specifies a rune which is a lower-case tail in a word in the input.
RUCTail specifies a rune which is an upper-case tail in a word in the input.
Symbol represents a symbol input type with '.' and ':' segment delimitors.
Text represents a text input type.

# Structs

Matcher implements a fuzzy matching algorithm for scoring candidates against a pattern.

# Type aliases

Input specifies the type of the input.
RuneRole specifies the role of a rune in the context of an input.
WordConsumer defines a consumer for a word delimited by the [start,end) byte offsets in an input (start is inclusive, end is exclusive).