From 822eb95303c2350fa8934cdceab4cf6c274d8ed6 Mon Sep 17 00:00:00 2001 From: Ben S Date: Sun, 15 Feb 2015 13:48:41 +0000 Subject: [PATCH] But there's only one type of string --- rust.mm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rust.mm b/rust.mm index 2f34727..0f0f6aa 100644 --- a/rust.mm +++ b/rust.mm @@ -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; }