projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gui: For text data import, use the same parser for preview as for import.
[pspp]
/
src
/
ui
/
gui
/
psppire-delimited-text.h
diff --git
a/src/ui/gui/psppire-delimited-text.h
b/src/ui/gui/psppire-delimited-text.h
index b0ef9499fb0a26c9fc173050c94123050ae27e76..c24ce10c9375d2f1c5d07efeff68eb996928a49e 100644
(file)
--- a/
src/ui/gui/psppire-delimited-text.h
+++ b/
src/ui/gui/psppire-delimited-text.h
@@
-18,6
+18,7
@@
#define __PSPPIRE_DELIMITED_TEXT_H__
#include "libpspp/str.h"
#define __PSPPIRE_DELIMITED_TEXT_H__
#include "libpspp/str.h"
+#include "libpspp/string-array.h"
#include <glib-object.h>
#include <gtk/gtk.h>
#include <glib-object.h>
#include <gtk/gtk.h>
@@
-59,16
+60,18
@@
struct _PsppireDelimitedText
gint first_line;
GSList *delimiters;
gint first_line;
GSList *delimiters;
- gint max_delimiters;
+ gint max_fields;
+
+ gunichar quote;
/*< private >*/
gboolean dispose_has_run ;
gint stamp;
/* caching */
/*< private >*/
gboolean dispose_has_run ;
gint stamp;
/* caching */
- const char *cache_starts[512];
- struct substring const_cache;
int cache_row;
int cache_row;
+ struct string_array cache;
+ struct data_parser *parser;
};
struct _PsppireDelimitedTextClass
};
struct _PsppireDelimitedTextClass