But there's only one type of string

This commit is contained in:
Ben S
2015-02-15 13:48:41 +00:00
parent da342c1b7d
commit 822eb95303

12
rust.mm
View File

@@ -30,13 +30,21 @@ static bool addRun(NSString *kind, int start,int len , const BBLMCallbackBlock&
SInt32 skipString(BBLMTextIterator &iter)
{
SInt32 length = 1;
UniChar terminator = iter.GetNextChar();
UniChar ch;
if (iter.strcmp("\"", 1) == 0)
{
iter += 1;
}
else
{
return 0;
}
while ((ch = iter.GetNextChar()))
{
length++;
if (ch == terminator)
if (ch == '"')
{
break;
}