The class accents provides a wrapper to transparently create and access an accents_module to handle accentuation for the appropriate language. More...
#include <accents.h>
Public Member Functions | |
accents (const std::string &) | |
Constructor. | |
~accents () | |
Destructor. | |
void | fix_accentuation (std::set< std::string > &, const sufrule &) const |
fix accentuation patterns of a list of root candidates, according to a suffix rule | |
Private Attributes | |
accents_module * | who |
remember which module is doing the real work. |
The class accents provides a wrapper to transparently create and access an accents_module to handle accentuation for the appropriate language.
accents::accents | ( | const std::string & | Lang | ) |
Constructor.
Create the appropriate accents_module (according to received options), and create a wrapper to access it.
Create Spanish accent handler
Create Galician accent handler !! (equal to Spanish ??) !!
Create Catalan accent handler !! To be fixed !!
Create Default (null) accent handler. Ok for english.
References who.
accents::~accents | ( | ) |
void accents::fix_accentuation | ( | std::set< std::string > & | candidates, | |
const sufrule & | suf | |||
) | const |
fix accentuation patterns of a list of root candidates, according to a suffix rule
wrapper methods: just call the wrapped accents_module.
References accents_module::fix_accentuation(), and who.
Referenced by affixes::look_for_affixes_in_list(), and affixes::look_for_combined_affixes().
accents_module* accents::who [private] |
remember which module is doing the real work.
Referenced by accents(), fix_accentuation(), and ~accents().