aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCSVParser.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-01-09 01:38:23 +0000
committerrowanbeentje <rowan@beent.je>2010-01-09 01:38:23 +0000
commit9004533ba1d84d670a77cbfc9eae401b66e9dd0e (patch)
tree8d16781c788a964e45102b66ffc04b77fa1fb9e9 /Source/SPCSVParser.m
parentfcb6ce6cbb0bd4179e22a3dd17dd12e4a3529cdd (diff)
downloadsequelpro-9004533ba1d84d670a77cbfc9eae401b66e9dd0e.tar.gz
sequelpro-9004533ba1d84d670a77cbfc9eae401b66e9dd0e.tar.bz2
sequelpro-9004533ba1d84d670a77cbfc9eae401b66e9dd0e.zip
- Upgrade Sequel Pro to be compiled as a 3-way PPC/i386/x86_64 binary for release builds, including a large number of 64bit compatibility upgrades and tweaks
- Upgrade RegexKitLite to 3.3
Diffstat (limited to 'Source/SPCSVParser.m')
-rw-r--r--Source/SPCSVParser.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/SPCSVParser.m b/Source/SPCSVParser.m
index b141efcd..58b70942 100644
--- a/Source/SPCSVParser.m
+++ b/Source/SPCSVParser.m
@@ -83,8 +83,8 @@
{
NSMutableArray *csvRowArray;
NSMutableString *csvCellString = [NSMutableString string];
- long startingParserPosition, nextQuoteDistance, nextFieldEndDistance, nextLineEndDistance;
- int skipLength, j;
+ NSUInteger startingParserPosition, nextQuoteDistance, nextFieldEndDistance, nextLineEndDistance;
+ NSInteger skipLength, j;
BOOL fieldIsQuoted, isEscaped;
BOOL lineEndingEncountered = NO;
@@ -351,7 +351,7 @@
/**
* Return the parser position
*/
-- (long) parserPosition
+- (NSUInteger) parserPosition
{
return parserPosition;
}
@@ -360,7 +360,7 @@
* Return the total length of CSV parsed so far - differs from the parser position in
* streaming/trimming situations
*/
-- (long) totalLengthParsed
+- (NSUInteger) totalLengthParsed
{
return totalLengthParsed;
}
@@ -570,7 +570,7 @@
* parser location. Returns NSNotFound if the string could not be found before the end
* of the string.
*/
-- (long) _getDistanceToString:(NSString *)theString
+- (NSUInteger) _getDistanceToString:(NSString *)theString
{
NSRange stringRange = [csvString rangeOfString:theString options:NSLiteralSearch range:NSMakeRange(parserPosition, csvStringLength - parserPosition)];
@@ -589,7 +589,7 @@
{
if (!skipCharacterSet) return;
- int i = 0;
+ NSInteger i = 0;
while (parserPosition + i < csvStringLength) {
if (![skipCharacterSet characterIsMember:[csvString characterAtIndex:parserPosition+i]]) break;
i++;