Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FuzzyListRefMut

With a Fuzzy List, you can implement a fuzzy searching algorithm. The list stores all the items that can be searched for. With the search method you can then execute the actual fuzzy search which returns a list of all the elements found. This can be used to implement searching in a list of games.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

ptr

ptr: number

Methods

push

  • push(text: string): void
  • Adds a new element to the list.

    Parameters

    • text: string

    Returns void

search

  • search(pattern: string, max: number): any
  • Searches for the pattern provided in the list. A list of all the matching elements is returned. The returned list has a maximum amount of elements provided to this method.

    Parameters

    • pattern: string
    • max: number

    Returns any

Generated using TypeDoc