aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCSVParser.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-01-06 01:58:16 +0000
committerrowanbeentje <rowan@beent.je>2012-01-06 01:58:16 +0000
commitf50a951609470af0cfb080b3932da899a3880502 (patch)
tree5f16a6532133fbf499838101b8aa0f69e299f826 /Source/SPCSVParser.h
parentef58dcc476f4732f3b3baa32486c8be504bbd242 (diff)
downloadsequelpro-f50a951609470af0cfb080b3932da899a3880502.tar.gz
sequelpro-f50a951609470af0cfb080b3932da899a3880502.tar.bz2
sequelpro-f50a951609470af0cfb080b3932da899a3880502.zip
- Add a new CSV import field escape setting, as a new default, supporting both backslash and double-character escaping. This will mean the vast majroty of CSVs selected for import will be read correctly by default, fixing issues such as Issue #1252
Diffstat (limited to 'Source/SPCSVParser.h')
-rw-r--r--Source/SPCSVParser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPCSVParser.h b/Source/SPCSVParser.h
index a230d69b..1691ba47 100644
--- a/Source/SPCSVParser.h
+++ b/Source/SPCSVParser.h
@@ -73,6 +73,7 @@
NSScanner *csvScanner;
BOOL escapeStringIsFieldQuoteString;
+ BOOL useStrictEscapeMatching;
}
/* Retrieving data from the CSV string */
@@ -96,6 +97,7 @@
- (void) setFieldQuoteString:(NSString *)theString convertDisplayStrings:(BOOL)convertString;
- (void) setEscapeString:(NSString *)theString convertDisplayStrings:(BOOL)convertString;
- (void) setNullReplacementString:(NSString *)nullString;
+- (void) setEscapeStringsAreMatchedStrictly:(BOOL)strictMatching;
/* Init and internal update methods */
- (void) _initialiseCSVParserDefaults;