Lines Matching refs:parserOptions
162 var csvStream = fastCsv.parse(options.parserOptions).on('data', function (data) {
26264 function CsvParserStream(parserOptions) {
26270 objectMode: parserOptions.objectMode
26278 _this.parserOptions = parserOptions;
26279 _this.parser = new parser_1.Parser(parserOptions);
26280 _this.headerTransformer = new transforms_1.HeaderTransformer(parserOptions);
26281 _this.decoder = new string_decoder_1.StringDecoder(parserOptions.encoding);
26501 if (!this.parserOptions.objectMode) {
26515 return this.parserOptions.limitRows && this.rowCount >= this.parserOptions.maxRows;
26520 return this.parsedRowCount > this.parserOptions.skipRows;
26525 return this.parsedLineCount <= this.parserOptions.skipLines;
26719 function Parser(parserOptions) {
26722 this.parserOptions = parserOptions;
26723 this.rowParser = new RowParser_1.RowParser(this.parserOptions);
26731 parserOptions: this.parserOptions,
26735 if (this.parserOptions.supportsComments) {
26759 var parserOptions = this.parserOptions;
26763 if (Token_1.Token.isTokenComment(nextToken, parserOptions)) {
26806 if (this.parserOptions.ignoreEmpty && EMPTY_ROW_REGEXP.test(row.join(''))) {
26855 function RowParser(parserOptions) {
26858 this.parserOptions = parserOptions;
26859 this.columnParser = new column_1.ColumnParser(parserOptions);
26865 var parserOptions = this.parserOptions;
26876 …rrentScanner.hasMoreCharacters && isTokenCarriageReturn(currentToken, parserOptions) && hasMoreDat…
26909 if (currentToken !== null && isTokenDelimiter(currentToken, this.parserOptions)) {
26919 var parserOptions = this.parserOptions;
26921 if (isTokenDelimiter(currentToken, parserOptions)) {
26931 if (nextToken !== null && isTokenDelimiter(nextToken, parserOptions)) {
26971 this.parserOptions = args.parserOptions;
27028 var regex = this.parserOptions.NEXT_TOKEN_REGEXP;
27107 value: function isTokenCarriageReturn(token, parserOptions) {
27108 return token.token === parserOptions.carriageReturn;
27112 value: function isTokenComment(token, parserOptions) {
27113 return parserOptions.supportsComments && !!token && token.token === parserOptions.comment;
27117 value: function isTokenEscapeCharacter(token, parserOptions) {
27118 return token.token === parserOptions.escapeChar;
27122 value: function isTokenQuote(token, parserOptions) {
27123 return token.token === parserOptions.quote;
27127 value: function isTokenDelimiter(token, parserOptions) {
27128 return token.token === parserOptions.delimiter;
27147 var ColumnFormatter = function ColumnFormatter(parserOptions) {
27150 if (parserOptions.trim) {
27154 } else if (parserOptions.ltrim) {
27158 } else if (parserOptions.rtrim) {
27192 function ColumnParser(parserOptions) {
27195 this.parserOptions = parserOptions;
27196 this.quotedColumnParser = new QuotedColumnParser_1.QuotedColumnParser(parserOptions);
27197 this.nonQuotedColumnParser = new NonQuotedColumnParser_1.NonQuotedColumnParser(parserOptions);
27205 …(nextNonSpaceToken !== null && Token_1.Token.isTokenQuote(nextNonSpaceToken, this.parserOptions)) {
27242 function NonQuotedColumnParser(parserOptions) {
27245 this.parserOptions = parserOptions;
27246 this.columnFormatter = new ColumnFormatter_1.ColumnFormatter(parserOptions);
27256 var parserOptions = this.parserOptions;
27261 if (isTokenDelimiter(nextToken, parserOptions) || isTokenRowDelimiter(nextToken)) {
27303 function QuotedColumnParser(parserOptions) {
27306 this.parserOptions = parserOptions;
27307 this.columnFormatter = new ColumnFormatter_1.ColumnFormatter(parserOptions);
27329 …throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote || '', "' in lin…
27341 var parserOptions = this.parserOptions;
27348 var isQuote = isTokenQuote(nextToken, parserOptions); // ignore first quote
27353 if (isTokenEscapeCharacter(nextToken, parserOptions)) {
27359 …& (isTokenQuote(tokenFollowingEscape, parserOptions) || isTokenEscapeCharacter(tokenFollowingEscap…
27389 var parserOptions = this.parserOptions;
27393 var isNextTokenADelimiter = isTokenDelimiter(nextNonSpaceToken, parserOptions);
27400 …throw new Error("Parse Error: expected: '".concat(parserOptions.escapedDelimiter, "' OR new line g…
27551 function HeaderTransformer(parserOptions) {
27559 this.parserOptions = parserOptions;
27561 if (parserOptions.headers === true) {
27563 } else if (Array.isArray(parserOptions.headers)) {
27564 this.setHeaders(parserOptions.headers);
27565 } else if (lodash_isfunction_1.default(parserOptions.headers)) {
27566 this.headersTransform = parserOptions.headers;
27585 var parserOptions = this.parserOptions;
27587 if (!this.headersTransform && parserOptions.renameHeaders && !this.processedFirstRow) {
27621 var parserOptions = this.parserOptions;
27623 if (!parserOptions.discardUnmappedColumns && row.length > this.headersLength) {
27624 if (!parserOptions.strictColumnHandling) {
27635 if (parserOptions.strictColumnHandling && row.length < this.headersLength) {