Rune Caster 1.0.0
Modern C++ Text Processing Framework
|
Language detection spell using C++20 concepts. More...
#include <spell_language.hpp>
Public Types | |
using | input_type = RuneSequence |
using | output_type = RuneSequence |
Public Types inherited from rune_caster::spell_base< RuneSequence > | |
using | input_type |
using | output_type |
Public Member Functions | |
RuneSequence | operator() (const RuneSequence &input) const override |
Apply language detection to the input sequence. | |
std::string | description () const override |
Get the spell's description. | |
std::string | name () const override |
Get the spell's name. | |
Public Member Functions inherited from rune_caster::spell_base< RuneSequence > | |
virtual | ~spell_base ()=default |
Additional Inherited Members | |
Static Public Member Functions inherited from rune_caster::spell_base< RuneSequence > | |
static constexpr bool | can_process () noexcept |
Check if this spell can be applied to the given input type (C++20 concepts) | |
static constexpr bool | produces () noexcept |
Check if this spell produces the expected output type (C++20 concepts) | |
static constexpr const char * | input_type_name () noexcept |
Get input type name as compile-time string (C++20) | |
static constexpr const char * | output_type_name () noexcept |
Get output type name as compile-time string (C++20) |
Language detection spell using C++20 concepts.
Attempts to detect the language of text and update language hints. This is useful for preprocessing text before applying language-specific transformations.
Definition at line 22 of file spell_language.hpp.
Definition at line 24 of file spell_language.hpp.
Definition at line 25 of file spell_language.hpp.
|
overridevirtual |
Get the spell's description.
Implements rune_caster::spell_base< RuneSequence >.
Definition at line 27 of file language_detector.cpp.
|
inlineoverridevirtual |
Get the spell's name.
Implements rune_caster::spell_base< RuneSequence >.
Definition at line 35 of file spell_language.hpp.
|
overridevirtual |
Apply language detection to the input sequence.
input | The text sequence to analyze |
Implements rune_caster::spell_base< RuneSequence >.
Definition at line 13 of file language_detector.cpp.