EcGen class
#include <ecgen/greeter.h>
A class for saying hello in multiple languages.
Constructors, destructors, conversion operators
- EcGen(std::string name)
- Creates a new ecgen.
Public functions
-
auto greet(LanguageCode lang = LanguageCode::
EN) const -> std::string - Creates a localized string containing the greeting.
Function documentation
std::string ecgen:: EcGen:: greet(LanguageCode lang = LanguageCode:: EN) const
Creates a localized string containing the greeting.
| Parameters | |
|---|---|
| lang | the language to greet in |
| Returns | a string containing the greeting |