1 | import { Converter } from "./Converter";
|
2 | import { Fileline } from "./fileline";
|
3 | export declare class RowSplit {
|
4 | private conv;
|
5 | private quote;
|
6 | private trim;
|
7 | private escape;
|
8 | private cachedRegExp;
|
9 | private delimiterEmitted;
|
10 | private _needEmitDelimiter?;
|
11 | private readonly needEmitDelimiter;
|
12 | constructor(conv: Converter);
|
13 | parse(fileline: Fileline): RowSplitResult;
|
14 | private toCSVRow(rowArr, trim, quote, delimiter);
|
15 | private getDelimiter(fileline);
|
16 | private isQuoteOpen(str);
|
17 | private isQuoteClose(str);
|
18 | private escapeQuote(segment);
|
19 | parseMultiLines(lines: Fileline[]): MultipleRowResult;
|
20 | }
|
21 | export interface MultipleRowResult {
|
22 | rowsCells: string[][];
|
23 | partial: string;
|
24 | }
|
25 | export interface RowSplitResult {
|
26 | |
27 |
|
28 |
|
29 | cells: string[];
|
30 | |
31 |
|
32 |
|
33 | closed: boolean;
|
34 | }
|