Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CsvQuoteState

Implements a quote string state object for CSV streams.

Hierarchy

  • CsvQuoteState

Implements

Index

Methods

decodeString

  • decodeString(value: string, quoteSymbol: number): string
  • Decodes a string value.

    Parameters

    • value: string

      A string value to be decoded.

    • quoteSymbol: number

      A string quote character.

    Returns string

    An decoded string.

encodeString

  • encodeString(value: string, quoteSymbol: number): string
  • Encodes a string value.

    Parameters

    • value: string

      A string value to be encoded.

    • quoteSymbol: number

      A string quote character.

    Returns string

    An encoded string.

nextToken

  • Gets the next token from the stream started from the character linked to this state.

    Parameters

    • scanner: IScanner

      A textual string to be tokenized.

    • tokenizer: ITokenizer

      A tokenizer class that controls the process.

    Returns Token

    The next token from the top of the stream.

Generated using TypeDoc