| 72 | bool TeXParser::_isLoading = false; |
| 73 | |
| 74 | void TeXParser::init( |
| 75 | bool ispartial, |
| 76 | const wstring& parsestring, |
| 77 | _out_ TeXFormula* formula, bool fp) throw(ex_parse) { |
| 78 | _pos = _spos = _len = 0; |
| 79 | _line = _col = 0; |
| 80 | _group = 0; |
| 81 | _atIsLetter = 0; |
| 82 | _insertion = _arrayMode = _ignoreWhiteSpace = false; |
| 83 | _isPartial = _hideUnknownChar = true; |
| 84 | |
| 85 | _formula = formula; |
| 86 | _ignoreWhiteSpace = true; |
| 87 | _isPartial = ispartial; |
| 88 | if (!parsestring.empty()) { |
| 89 | _parseString = parsestring; |
| 90 | _len = parsestring.length(); |
| 91 | _pos = 0; |
| 92 | if (fp) firstpass(); |
| 93 | } else { |
| 94 | _parseString = L""; |
| 95 | _pos = 0; |
| 96 | _len = 0; |
| 97 | } |
| 98 | _arrayMode = formula->isArrayMode(); |
| 99 | } |
| 100 | |
| 101 | void TeXParser::reset(const wstring& latex) { |
| 102 | _parseString = latex; |
nothing calls this directly
no test coverage detected