Skip to content
FutureBlitz

    Install

    Import std.text.fuzzy

    FuzzyMatch

    std.text.fuzzy

    struct

    Public Struct FuzzyMatch

    What a fuzzy match found: its Score, higher for a better match, and the byte Positions of the text's characters that the pattern's matched, in order.

    Examples

    Local found = Fuzzy.Match("fb", "foobar")
    Expect(found != Null)
    If found == Null Then Return
    Expect(found.Score > 0 && found.Positions == [0, 3])

    std/text/fuzzy.fb, line 42

    • Public ReadOnly Field Score: Int field #

      How well the pattern matched: higher for a better match.

    • Public ReadOnly Field Positions: Int[] field #

      The byte positions of the characters the pattern's matched, in order.

    Report an issue with this page or with FutureBlitz on GitHub.