skipSymbol

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

Examples

Test skipping over symbols

import mir.deser.text.tokenizer : tokenizeString;

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

test("f", 0);
test("foo:", ':');
test("foo,", ',');
test("foo ", ' ');
test("foo\n", '\n');
test("foo]", ']');
test("foo}", '}');
test("foo)", ')');
test("foo\\n", '\\');

Meta