skipStruct

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

Examples

Test skipping over structs

import mir.deser.text.tokenizer : tokenizeString;

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

test("},", ',');
test("[\"foo bar baz\"]},", ',');
test("{}},{}", ','); // skip over an embedded struct inside of a struct

Meta