MCPcopy Create free account
hub / github.com/KDE/kdevelop / add

Method add

kdevplatform/util/formattinghelpers.cpp:397–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395{
396public:
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 {

Callers

nothing calls this directly

Calls 2

isFuzzyFunction · 0.85
addDoubleQuoteMethod · 0.45

Tested by

no test coverage detected