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