-
Notifications
You must be signed in to change notification settings - Fork 268
Expand file tree
/
Copy pathrowSplit.d.ts
More file actions
34 lines (34 loc) · 860 Bytes
/
Copy pathrowSplit.d.ts
File metadata and controls
34 lines (34 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { Converter } from "./Converter";
import { Fileline } from "./fileline";
export declare class RowSplit {
private conv;
private quote;
private trim;
private escape;
private cachedRegExp;
private delimiterEmitted;
private _needEmitDelimiter?;
private get needEmitDelimiter();
constructor(conv: Converter);
parse(fileline: Fileline): RowSplitResult;
private toCSVRow;
private getDelimiter;
private isQuoteOpen;
private isQuoteClose;
private escapeQuote;
parseMultiLines(lines: Fileline[]): MultipleRowResult;
}
export interface MultipleRowResult {
rowsCells: string[][];
partial: string;
}
export interface RowSplitResult {
/**
* csv row array. ["a","b","c"]
*/
cells: string[];
/**
* if the passed fileline is a complete row
*/
closed: boolean;
}