MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / getDollarGroup

Method getDollarGroup

src/core/parser.cpp:140–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140wstring TeXParser::getDollarGroup(wchar_t openclose) throw(ex_parse) {
141 int spos = _pos;
142 wchar_t ch;
143
144 do {
145 ch = _parseString[_pos++];
146 if (ch == ESCAPE) _pos++;
147 } while (_pos < _len && ch != openclose);
148
149 if (ch == openclose) return _parseString.substr(spos, _pos - spos - 1);
150 return _parseString.substr(spos, _pos - spos);
151}
152
153wstring TeXParser::getGroup(wchar_t open, wchar_t close) throw(ex_parse) {
154 if (_pos == _len) return L"";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected