TagSoup - v3.1.0
    Preparing search index...

    Interface Tokenizer

    A tokenizer that reads tokens from text and returns them by invoking a callback.

    interface Tokenizer {
        tokenizeDocument(text: string, callback: TokenCallback): void;
        tokenizeFragment(text: string, callback: TokenCallback): void;
    }
    Index

    Methods

    • Reads tokens from text and returns them by invoking a callback.

      Parameters

      • text: string

        The text string to read tokens from.

      • callback: TokenCallback

        The callback that is invoked when a token is read.

      Returns void

    • Reads tokens from text and returns them by invoking a callback.

      Parameters

      • text: string

        The text string to read tokens from.

      • callback: TokenCallback

        The callback that is invoked when a token is read.

      Returns void