This class is a sound change applier. More...
#include <soundChange.h>
Public Member Functions | |
soundChange (const std::map< std::string, std::string > &, const std::vector< std::string > &) | |
Constructor with vars and rules. | |
~soundChange () | |
Destructor. | |
std::string | change (const std::string &) const |
Returns the sound changed for the word. | |
Private Member Functions | |
std::string | apply_rule (const std::string &, const ph_rule &) const |
find in a text a string and replace it with another string under certain conditions | |
bool | check_cond (const std::string &, const std::string &, int, const std::string &) const |
check that the conditions for the sound change are true | |
Private Attributes | |
std::vector< ph_rule > | rules |
rules |
This class is a sound change applier.
With it, you can construct objects which will generate consistent sound changes.
soundChange::soundChange | ( | const std::map< std::string, std::string > & | , | |
const std::vector< std::string > & | ||||
) |
Constructor with vars and rules.
soundChange::~soundChange | ( | ) |
Destructor.
std::string soundChange::apply_rule | ( | const std::string & | , | |
const ph_rule & | ||||
) | const [private] |
find in a text a string and replace it with another string under certain conditions
std::string soundChange::change | ( | const std::string & | ) | const |
Returns the sound changed for the word.
bool soundChange::check_cond | ( | const std::string & | , | |
const std::string & | , | |||
int | , | |||
const std::string & | ||||
) | const [private] |
check that the conditions for the sound change are true
std::vector<ph_rule> soundChange::rules [private] |
rules