Function kiwix::converta2toa3

Function Documentation

std::string kiwix::converta2toa3(const std::string &a2code)

Convert language code from iso2 code to iso3

This function is provided as a small helper. It is probably better to use native tools to manipulate locales.

Parameters

a2code – a iso2 code string.

Throws

std::out_of_range – if iso2 code is not known.

Returns

the corresponding iso3 code.