Rune Caster 1.0.0
Modern C++ Text Processing Framework
|
Classes | |
class | SpellComposition |
Composition of two spells into a single spell pipeline. More... |
Functions | |
template<typename FirstSpell, typename SecondSpell> | |
auto | compose (FirstSpell &&first, SecondSpell &&second) |
Compose two spells into a single spell pipeline. | |
template<typename Spell> | |
RuneSequence | cast_spell (const RuneSequence &input, const Spell &spell) |
Helper function for casting spells on RuneSequence. | |
template<typename Spell> | |
std::string | cast_spell (std::string_view utf8_input, const Spell &spell) |
Helper function for casting spells on UTF-8 strings. |
RuneSequence rune_caster::spell::composition::cast_spell | ( | const RuneSequence & | input, |
const Spell & | spell ) |
Helper function for casting spells on RuneSequence.
This is a convenience function that applies a spell to a RuneSequence and returns the transformed result.
Spell | The type of spell to apply |
input | The input sequence to transform |
spell | The spell to apply |
Definition at line 117 of file spell_composition.hpp.
std::string rune_caster::spell::composition::cast_spell | ( | std::string_view | utf8_input, |
const Spell & | spell ) |
Helper function for casting spells on UTF-8 strings.
This is a convenience function that converts a UTF-8 string to RuneSequence, applies the spell, and converts back to UTF-8 string.
Spell | The type of spell to apply |
utf8_input | The UTF-8 input string |
spell | The spell to apply |
Definition at line 134 of file spell_composition.hpp.
auto rune_caster::spell::composition::compose | ( | FirstSpell && | first, |
SecondSpell && | second ) |
Compose two spells into a single spell pipeline.
This function creates a SpellComposition that applies the first spell, then applies the second spell to the result. Uses C++20 concepts for compile-time validation.
FirstSpell | The type of the first spell |
SecondSpell | The type of the second spell |
first | The first spell to apply |
second | The second spell to apply |
Definition at line 94 of file spell_composition.hpp.