Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • any
    • WildcardTokenizer

Index

Properties

Protected _TABLE

_TABLE: IDICT<IWord>

Protected _TABLE2

_TABLE2: IDICT2<IWord>

name

name: string = "WildcardTokenizer"

Methods

_cache

  • _cache(): void

createWildcardToken

matchWord

  • matchWord(text: string, cur?: number): IWord[]
  • 匹配单词,返回相关信息

    Parameters

    • text: string

      文本

    • Optional cur: number

      开始位置

    Returns IWord[]

    返回格式 {w: '单词', c: 开始位置}

split

splitWildcard

  • splitWildcard(text: string, cur?: number): IWord[]

Generated using TypeDoc