X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdata-io%2Fdata-parser.h;h=013e707858e5a9ee60bf6c7692654d95270512ac;hb=81579d9e9f994fb2908f50af41c3eb033d216e58;hp=3ee1be8c9b4b079560e3c5e871344a996cd748cf;hpb=2a2e0fe99b3bdf364bff6f0eb7a13ce40be9488c;p=pspp-builds.git diff --git a/src/language/data-io/data-parser.h b/src/language/data-io/data-parser.h index 3ee1be8c..013e7078 100644 --- a/src/language/data-io/data-parser.h +++ b/src/language/data-io/data-parser.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,7 +20,8 @@ /* Abstraction of a DATA LIST or GET DATA TYPE=TXT data parser. */ #include -#include +#include "data/case.h" +#include "libpspp/str.h" struct dataset; struct dfm_reader; @@ -37,7 +38,7 @@ enum data_parser_type }; /* Creating and configuring any parser. */ -struct data_parser *data_parser_create (void); +struct data_parser *data_parser_create (const struct dictionary *dict); void data_parser_destroy (struct data_parser *); enum data_parser_type data_parser_get_type (const struct data_parser *); @@ -54,6 +55,7 @@ void data_parser_set_span (struct data_parser *, bool may_cases_span_records); void data_parser_set_empty_line_has_field (struct data_parser *, bool empty_line_has_field); void data_parser_set_quotes (struct data_parser *, struct substring); +void data_parser_set_quote_escape (struct data_parser *, bool escape); void data_parser_set_soft_delimiters (struct data_parser *, struct substring); void data_parser_set_hard_delimiters (struct data_parser *, struct substring);