Options
All
  • Public
  • Public/Protected
  • All
Menu

Class URLTokenizer

Package version

A class that tokenizes URL strings.

Hierarchy

  • URLTokenizer

Index

Constructors

constructor

  • new URLTokenizer(_text: string, state?: URLTokenizerState): URLTokenizer
  • Parameters

    • _text: string
    • Optional state: URLTokenizerState

    Returns URLTokenizer

Properties

_currentIndex

_currentIndex: number

_currentState

_currentState: URLTokenizerState

_currentToken

_currentToken: URLToken | undefined

_text

_text: string

_textLength

_textLength: number

Methods

current

  • Get the current URLToken this URLTokenizer is pointing at, or undefined if the URLTokenizer hasn't started or has finished tokenizing.

    Returns URLToken | undefined

next

  • next(): boolean
  • Advance to the next URLToken and return whether or not a URLToken was found.

    Returns boolean

Generated using TypeDoc