/////////////////////////////////////////////////////////////////////////// Lexer::Type::pattern / / |
| 797 | // Lexer::Type::pattern |
| 798 | // / <unquoted-string> / <EOS> | <unicodeWhitespace> |
| 799 | bool Lexer::isPattern(std::string& token, Lexer::Type& type) { |
| 800 | std::size_t marker = _cursor; |
| 801 | |
| 802 | std::string word; |
| 803 | if (readWord(_text, "/", _cursor, word) && (isEOS() || unicodeWhitespace(_text[_cursor]))) { |
| 804 | token = _text.substr(marker, _cursor - marker); |
| 805 | type = Lexer::Type::pattern; |
| 806 | return true; |
| 807 | } |
| 808 | |
| 809 | _cursor = marker; |
| 810 | return false; |
| 811 | } |
| 812 | |
| 813 | //////////////////////////////////////////////////////////////////////////////// |
| 814 | // Lexer::Type::op |
nothing calls this directly
no outgoing calls
no test coverage detected