| 395 | { |
| 396 | public: |
| 397 | FuzzyMatchResult add(const QChar* characterLocation, bool isInserted) override |
| 398 | { |
| 399 | Q_ASSERT(characterLocation); |
| 400 | const auto c = *characterLocation; |
| 401 | if (c == QLatin1Char{'"'}) { |
| 402 | const bool valid = addDoubleQuote(characterLocation, isInserted) && m_validator.addDoubleQuote(isInserted); |
| 403 | return valid ? FuzzyMatchResult::Fuzzy : FuzzyMatchResult::MatchingFailed; |
| 404 | } |
| 405 | return isFuzzy(c) ? FuzzyMatchResult::Fuzzy : FuzzyMatchResult::NotFuzzy; |
| 406 | } |
| 407 | |
| 408 | bool hasUnmatchedDoubleQuote() const |
| 409 | { |
nothing calls this directly
no test coverage detected