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

Method getLength

src/core/parser.cpp:654–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654pair<int, float> TeXParser::getLength() throw(ex_parse) {
655 if (_pos == _len) return make_pair(-1.f, -1.f);
656
657 int spos;
658 wchar_t ch = L'\0';
659
660 skipWhiteSpace();
661 spos = _pos;
662 while (_pos < _len && ch != ' ') {
663 ch = _parseString[_pos++];
664 }
665 skipWhiteSpace();
666
667 return SpaceAtom::getLength(_parseString.substr(spos, _pos - spos - 1));
668}
669
670bool TeXParser::replaceScript() {
671 wchar_t ch = _parseString[_pos];

Callers 2

macroFunction · 0.45
macroFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected