UNPKG

pip-services3-expressions-nodex

Version:

Tokenizers, parsers and expression calculators for Pip.Services in Node.js / ES2017

32 lines (31 loc) 1.2 kB
/** @module csv */ import { IQuoteState } from "../tokenizers/IQuoteState"; import { IScanner } from "../io/IScanner"; import { ITokenizer } from "../tokenizers/ITokenizer"; import { Token } from "../tokenizers/Token"; /** * Implements a quote string state object for CSV streams. */ export declare class CsvQuoteState implements IQuoteState { /** * Gets the next token from the stream started from the character linked to this state. * @param scanner A textual string to be tokenized. * @param tokenizer A tokenizer class that controls the process. * @returns The next token from the top of the stream. */ nextToken(scanner: IScanner, tokenizer: ITokenizer): Token; /** * Encodes a string value. * @param value A string value to be encoded. * @param quoteSymbol A string quote character. * @returns An encoded string. */ encodeString(value: string, quoteSymbol: number): string; /** * Decodes a string value. * @param value A string value to be decoded. * @param quoteSymbol A string quote character. * @returns An decoded string. */ decodeString(value: string, quoteSymbol: number): string; }