Anslatortray
|
Go to the source code of this file.
Namespaces | |
anslatortray | |
Namespace containing functions to translate from English to Pig Latin. | |
anslatortray::Characters | |
Arrays of diffrent characters (internal use) | |
anslatortray::Characters::Letters | |
Arrays of diffrent letters (internal use) | |
Functions | |
std::string | anslatortray::smartWordToPig (const std::string &englishWord) |
Translates a single complex English word to Pig Latin. (more robust) More... | |
std::string | anslatortray::translate (const std::string &englishText) |
Uses smartWordToPig and changeWords to perform translation from English to Pig Latin on every word it is given. More... | |
std::string | anslatortray::wordToPig (const std::string &englishWord) |
Translates a single English word to Pig Latin. More... | |
std::string | anslatortray::wordsToPig (const std::string &englishWords) |
Uses wordToPig and changeWords to perform dumb translation from English to Pig Latin on every word it is given. More... | |
std::string | anslatortray::attemptWordToEnglish (const std::string &pig, std::uint64_t numBeginningConosoants=1) |
Tries to translate a word in Pig Latin back to English. More... | |
std::string | anslatortray::changeWords (const std::string &words, std::string wordChanger(const std::string &word)) |
Helper function to perform an operation on all whitespace-seperated words (tokens) given to it. More... | |
Variables | |
constexpr char | anslatortray::VOWEL_START_STYLE [] = {"way"} |
Ending to use if word to translate starts with a vowel. More... | |
constexpr char | anslatortray::Characters::Letters::ALL [] {"aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ"} |
Array containing all upper and lower case letters (internal use) More... | |
constexpr char | anslatortray::Characters::Letters::VOWELS [] {"aAeEiIoOuU"} |
Array containing all upper and lower case vowels (except for y) (internal use) More... | |
constexpr char | anslatortray::Characters::Letters::VOWELS_WITH_Y [] {"aAeEiIoOuUyY"} |
Array containing all upper and lower case vowels (including y) (internal use) More... | |
constexpr char | anslatortray::Characters::Letters::Y [] {"yY"} |
Array containing upper and lower case y (internal use) More... | |
constexpr char | anslatortray::Characters::APOSTROPHE [] {"\'"} |
Array containing diffrent apostrophes (internal use) More... | |
constexpr char | anslatortray::Characters::WHITESPACE [] {" \t\v\n\r\f"} |
Array containing diffrent types of whitespace (internal use) More... | |