Rune Caster 1.0.0
Modern C++ Text Processing Framework
|
Functions | |
auto | whitespace () |
Factory functions for creating commonly used spells. | |
auto | whitespace (bool collapse_multiple, bool trim_edges=true) |
Create a customized whitespace normalizer. | |
auto | lowercase () |
Create a lowercase converter. | |
auto | uppercase () |
Create an uppercase converter. | |
auto | titlecase () |
Create a titlecase converter. | |
auto | unicode_nfc () |
Create an NFC (Canonical Decomposition followed by Canonical Composition) normalizer. | |
auto | unicode_nfd () |
Create an NFD (Canonical Decomposition) normalizer. | |
auto | unicode_nfkc () |
Create an NFKC (Compatibility Decomposition followed by Canonical Composition) normalizer. | |
auto | unicode_nfkd () |
Create an NFKD (Compatibility Decomposition) normalizer. | |
auto | punctuation (bool remove=true) |
Create a punctuation filter. | |
template<typename CaseType = void> | |
auto | text_normalizer (CaseType case_type={}) |
Create a text normalizer that applies common normalizations. | |
auto | search_preprocessor () |
Create a search-optimized text preprocessor. | |
auto | display_formatter () |
Create a display-optimized text formatter. | |
template<bool RemovePunctuation = true> | |
auto | text_normalizer_with_punctuation () |
Text normalizer with optional punctuation removal. | |
auto | trim () |
auto | tokenizer_whitespace () |
|
inline |
Create a display-optimized text formatter.
This creates a spell composition optimized for display:
Definition at line 166 of file spell_factory.hpp.
|
inline |
Create a lowercase converter.
Definition at line 52 of file spell_factory.hpp.
|
inline |
Create a punctuation filter.
remove | If true (default) remove punctuation; if false keep only punctuation. |
Definition at line 112 of file spell_factory.hpp.
|
inline |
Create a search-optimized text preprocessor.
This creates a spell composition optimized for search indexing:
Definition at line 149 of file spell_factory.hpp.
auto rune_caster::spell::factory::text_normalizer | ( | CaseType | case_type = {} | ) |
Create a text normalizer that applies common normalizations.
This creates a composed spell that applies whitespace normalization, Unicode NFC normalization, and optionally case conversion.
case_type | Optional case conversion to apply (default: no case conversion) |
Definition at line 128 of file spell_factory.hpp.
|
inline |
Text normalizer with optional punctuation removal.
whitespace -> unicode NFC -> (optional punctuation removal)
Definition at line 179 of file spell_factory.hpp.
|
inline |
Create a titlecase converter.
Definition at line 68 of file spell_factory.hpp.
|
inline |
Definition at line 191 of file spell_factory.hpp.
|
inline |
Definition at line 188 of file spell_factory.hpp.
|
inline |
Create an NFC (Canonical Decomposition followed by Canonical Composition) normalizer.
Definition at line 78 of file spell_factory.hpp.
|
inline |
Create an NFD (Canonical Decomposition) normalizer.
Definition at line 86 of file spell_factory.hpp.
|
inline |
Create an NFKC (Compatibility Decomposition followed by Canonical Composition) normalizer.
Definition at line 94 of file spell_factory.hpp.
|
inline |
Create an NFKD (Compatibility Decomposition) normalizer.
Definition at line 102 of file spell_factory.hpp.
|
inline |
Create an uppercase converter.
Definition at line 60 of file spell_factory.hpp.
|
inline |
Factory functions for creating commonly used spells.
These factory functions provide convenient ways to create spell instances with commonly used configurations. They use modern C++20 features for optimal performance and type safety.
Create a standard whitespace normalizer
Creates a WhitespaceNormalizer that collapses multiple whitespace characters into single spaces and trims leading/trailing whitespace.
Definition at line 31 of file spell_factory.hpp.
|
inline |
Create a customized whitespace normalizer.
collapse_multiple | If true, collapse multiple whitespace into single space |
trim_edges | If true, remove leading and trailing whitespace |
Definition at line 42 of file spell_factory.hpp.