| 571 | */ |
| 572 | template<typename ForwardIt> |
| 573 | FuzzyMatchResult skipFuzzyAndWhitespace(ForwardIt& first, ForwardIt last, FuzzyMatcher& fuzzyMatcher, bool isInserted) |
| 574 | { |
| 575 | Q_ASSERT(first != last); |
| 576 | Q_ASSERT(!first->isSpace()); |
| 577 | do { |
| 578 | const auto result = fuzzyMatcher.add(&*first, isInserted); |
| 579 | if (result != FuzzyMatchResult::Fuzzy) { |
| 580 | return result; |
| 581 | } |
| 582 | ++first; |
| 583 | skipWhitespace(first, last); |
| 584 | } while (first != last); |
| 585 | return FuzzyMatchResult::Fuzzy; |
| 586 | } |
| 587 | |
| 588 | /** |
| 589 | * Matches the given unformatted prefix against the given formatted text. |
no test coverage detected