#include <functional>
#include <string>
#include <string_view>
#include <memory>
#include <type_traits>
#include "rune_sequence.hpp"
#include "caster.hpp"
Go to the source code of this file.
|
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;.
|