Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (24 sloc) 0.661 kb
@import "TDTokenizerState.j"
@implementation TDQuoteState : TDTokenizerState
{
BOOL balancesEOFTerminatedQuotes;
}
- (TDToken)nextTokenFromReader:(TDReader)r startingWith:(unsigned)cin tokenizer:(TDTokenizer)t
{
[self reset];
[self append:cin];
var c;
do {
c = [r read];
if (-1 === c) {
c = cin;
if (balancesEOFTerminatedQuotes) {
[self append:c];
}
} else {
[self append:c];
}
} while (c !== cin);
return [TDToken tokenWithTokenType:TDTokenTypeQuotedString stringValue:[self bufferedString] floatValue:0.0];
}
@end
Jump to Line
Something went wrong with that request. Please try again.