19 bool collapse_multiple_;
35 std::string
name()
const override {
return "WhitespaceNormalizer"; }
59 std::string
name()
const override {
return "UnicodeNormalizer"; }
91 std::string
name()
const override {
return "CaseConverter"; }
109 std::string
description()
const override {
return "Trim leading/trailing whitespace"; }
110 std::string
name()
const override {
return "TrimEdges"; }
@ Upper
Convert to uppercase.
@ Lower
Convert to lowercase.
@ Title
Convert to titlecase (first letter of each word)
std::string name() const override
Get the spell's name.
std::string description() const override
Get the spell's description.
CaseType case_type() const noexcept
Get the case type of this converter.
CaseConverter(CaseType case_type)
Construct a CaseConverter.
RuneSequence operator()(const RuneSequence &input) const override
Apply the spell transformation.
Trim leading and trailing whitespace.
std::string description() const override
Get the spell's description.
RuneSequence operator()(const RuneSequence &input) const override
Apply the spell transformation.
std::string name() const override
Get the spell's name.
std::string description() const override
Get the spell's description.
std::string name() const override
Get the spell's name.
RuneSequence operator()(const RuneSequence &input) const override
Apply the spell transformation.
UnicodeNormalizer(unicode::NormalizationForm form=unicode::NormalizationForm::NFC)
Construct a UnicodeNormalizer.
WhitespaceNormalizer(bool collapse_multiple=true, bool trim_edges=true)
Construct a WhitespaceNormalizer.
std::string name() const override
Get the spell's name.
std::string description() const override
Get the spell's description.
RuneSequence operator()(const RuneSequence &input) const override
Apply the spell transformation.
RuneString RuneSequence
Backward compatibility alias for RuneString.
spell_base< RuneSequence > sequence_spell
Most common spell type: RuneSequence -> RuneSequence.