Prelude API
    Preparing search index...

    Function firstPrefixLength

    • Returns the length of the first prefix of the input string found in the trie.

      Parameters

      • trie: t

        The radix trie to search in

      • input: string

        The string to find a prefix for

      • offset: number = 0

        The starting offset in the input string

      Returns number

      The length of the first prefix found, or 0 if no prefix exists