RepeatedWordRule.h header
#include <ew/app/RepeatedWordRule.h>
Namespace ew::app
RepeatedWordRule class
class ew::app::RepeatedWordRule
Flags a word immediately repeated after itself within a line ("the the"), a common typo and a readability distraction. Matching is case-insensitive and Unicode-aware, so invented codex names are covered too; the suggested fix is the single word.
Members
QString ew::app::RepeatedWordRule::id() const override
A stable identifier for this rule (e.g. "repeated-word"), used to enable or disable it in a profile and to refer to it in tests.
StyleCategory ew::app::RepeatedWordRule::category() const override
The category of issue this rule reports.
std::vector< StyleDiagnostic > ew::app::RepeatedWordRule::analyze(QStringView text) const override
Returns every issue this rule finds in text, with offsets measured into text.