CsvQuoteState

Implements a quote string state object for CSV streams.

Inherits: IQuoteState

Description

The CsvQuoteState implements a quote string state object for CSV streams.

Instance methods

DecodeString

Decodes a string value.

public string DecodeString(string value, char quoteSymbol)

  • value: string - string value to be decoded.
  • quoteSymbol: char - string quote character.
  • returns: string - An decoded string.

EncodeString

Encodes a string value.

public string EncodeString(string value, char quoteSymbol)

  • value: string - string value to be encoded.
  • quoteSymbol: char - string quote character.
  • returns: string - encoded string.

NextToken

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

public Token NextToken(IScanner scanner, ITokenizer tokenizer)

  • scanner: IScanner - textual string to be tokenized.
  • tokenizer: ITokenizer - tokenizer class that controls the process.
  • returns: Token - next token from the top of the stream.