| 652 | } |
| 653 | |
| 654 | pair<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 | |
| 670 | bool TeXParser::replaceScript() { |
| 671 | wchar_t ch = _parseString[_pos]; |