skipSymbolQuoted

Undocumented in source. Be warned that the author may not have intended to support it.
@safe @nogc pure
char
skipSymbolQuoted

Examples

Test skipping over quoted symbols

import mir.deser.text.tokenizer : tokenizeString;
import mir.deser.text.tokens : IonTokenizerException;

void test(string ts, char result) {
    auto t = tokenizeString(ts);
    assert(t.skipSymbolQuoted() == result);
}

void testFail(string ts) {
    import std.exception : assertThrown;
    auto t = tokenizeString(ts);
    assertThrown!IonTokenizerException(t.skipSymbolQuoted());
}

test("'", 0);
test("foo',", ',');
test("foo\\'bar':", ':');
test("foo\\\nbar',", ',');
testFail("foo");
testFail("foo\n");

Meta