Rune Caster 1.0.0
Modern C++ Text Processing Framework
Loading...
Searching...
No Matches
Basic

usage examples

using namespace rune_caster;
using namespace rune_caster::spells;
// Use predefined spells
auto result1 = to_lowercase("Hello World");
// Compose spells
auto result2 = pipeline(" Hello, World! ");
// Create custom spells
auto custom = spell_factory::make_spell([](const RuneSequence& input) {
// Custom transformation logic
return input;
}, "MySpell", "My custom transformation");
// Use with Caster
auto caster_result = caster(input) | pipeline | to_string();
// Use literals
using namespace rune_caster::literals;
auto replacer = "old -> new"_spell;
A powerful chaining pipeline for applying spells to data.
Definition caster.hpp:22
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.
Definition spells.hpp:16
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.