![]() |
Country Generator 3.3.2
Procedural country generation for C++23
|
Per-call locale selection options (cntg::get_locale()). More...
#include <countrygen.hpp>
Public Attributes | |
| std::optional< std::string > | country {std::nullopt} |
ISO 3166-1 alpha-2 code, any case; unset draws the country as get_country() does (or by speakers of language, when set). | |
| std::optional< std::string > | language {std::nullopt} |
ISO 639 code (fr), any case; narrows the draw to that language. | |
| bool | weighted {true} |
| Weighted by speakers (default); false makes every eligible tag, and every eligible country, equally likely. | |
Per-call locale selection options (cntg::get_locale()).
Definition at line 1196 of file countrygen.hpp.
| std::optional<std::string> dasmig::locale_request::country {std::nullopt} |
ISO 3166-1 alpha-2 code, any case; unset draws the country as get_country() does (or by speakers of language, when set).
Definition at line 1200 of file countrygen.hpp.
| std::optional<std::string> dasmig::locale_request::language {std::nullopt} |
ISO 639 code (fr), any case; narrows the draw to that language.
Definition at line 1203 of file countrygen.hpp.
| bool dasmig::locale_request::weighted {true} |
Weighted by speakers (default); false makes every eligible tag, and every eligible country, equally likely.
Definition at line 1207 of file countrygen.hpp.