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

Method init

src/core/parser.cpp:74–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72bool TeXParser::_isLoading = false;
73
74void 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
101void TeXParser::reset(const wstring& latex) {
102 _parseString = latex;

Callers

nothing calls this directly

Calls 1

isArrayModeMethod · 0.45

Tested by

no test coverage detected