| 138 | } |
| 139 | |
| 140 | wstring 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 | |
| 153 | wstring TeXParser::getGroup(wchar_t open, wchar_t close) throw(ex_parse) { |
| 154 | if (_pos == _len) return L""; |
nothing calls this directly
no outgoing calls
no test coverage detected