| 44 | } |
| 45 | |
| 46 | std::string::const_iterator firstNonIdentifier( |
| 47 | std::string::const_iterator _pos, |
| 48 | std::string::const_iterator _end |
| 49 | ) |
| 50 | { |
| 51 | auto currPos = _pos; |
| 52 | if (currPos == _pos && isIdentifierStart(*currPos)) |
| 53 | { |
| 54 | currPos++; |
| 55 | currPos = ranges::find_if_not(ranges::make_subrange(currPos, _end), isIdentifierPart); |
| 56 | } |
| 57 | return currPos; |
| 58 | } |
| 59 | |
| 60 | std::string::const_iterator firstWhitespaceOrNewline( |
| 61 | std::string::const_iterator _pos, |
no test coverage detected