usage examples
auto result2 = pipeline(" Hello, World! ");
return input;
}, "MySpell", "My custom transformation");
auto caster_result =
caster(input) | pipeline | to_string();
auto replacer = "old -> new"_spell;
A powerful chaining pipeline for applying spells to data.
auto make_spell(Lambda &&lambda, std::string name="CustomSpell", std::string description="Custom transformation")
Create a spell from a lambda.
Pre-defined spells using the unified Spell interface.
const Spell remove_punctuation
Remove punctuation characters.
const Spell to_lowercase
Convert text to lowercase.
const Spell whitespace_normalizer
Normalize whitespace characters.
RuneString RuneSequence
Backward compatibility alias for RuneString.