Rune Caster 1.0.0
Modern C++ Text Processing Framework
Loading...
Searching...
No Matches
spell_unified.hpp File Reference
#include <functional>
#include <string>
#include <string_view>
#include <memory>
#include <type_traits>
#include "rune_sequence.hpp"
#include "caster.hpp"
Include dependency graph for spell_unified.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  rune_caster::Spell
 Unified spell object for text transformation. More...

Namespaces

namespace  rune_caster
namespace  rune_caster::spell_factory
namespace  rune_caster::literals

Functions

template<typename Lambda>
auto rune_caster::spell_factory::make_spell (Lambda &&lambda, std::string name="CustomSpell", std::string description="Custom transformation")
 Create a spell from a lambda.
template<typename RuneTransform>
auto rune_caster::spell_factory::per_rune_spell (RuneTransform &&rune_transform, std::string name="PerRuneSpell", std::string description="Per-rune transformation")
 Create a spell that applies a transformation to each rune.
template<typename Predicate>
auto rune_caster::spell_factory::filter_spell (Predicate &&predicate, std::string name="FilterSpell", std::string description="Rune filtering")
 Create a spell that filters runes based on a predicate.
Spell rune_caster::literals::operator""_spell (const char *replacement_rule, size_t len)
 Create a simple string replacement spell Usage: auto spell = "old_text -> new_text"_spell;.