py2cpp::Py2Cpp class

A class for saying hello in multiple languages.

Constructors, destructors, conversion operators

Py2Cpp(std::string name)
Creates a new py2cpp.

Public functions

auto greet(LanguageCode lang = LanguageCode::EN) const -> std::string
Creates a localized string containing the greeting.

Function documentation

py2cpp::Py2Cpp::Py2Cpp(std::string name)

Creates a new py2cpp.

Parameters
name in the name to greet

std::string py2cpp::Py2Cpp::greet(LanguageCode lang = LanguageCode::EN) const

Creates a localized string containing the greeting.

Parameters
lang in the language to greet in
Returns a string containing the greeting