![]() |
Country Generator 3.3.2
Procedural country generation for C++23
|
Country generator library — procedural country generation for C++23. More...
#include "core.hpp"#include <algorithm>#include <array>#include <charconv>#include <chrono>#include <cmath>#include <cstddef>#include <cstdint>#include <cstdlib>#include <filesystem>#include <map>#include <optional>#include <ostream>#include <set>#include <span>#include <stdexcept>#include <string>#include <string_view>#include <system_error>#include <tuple>#include <utility>#include <vector>Go to the source code of this file.
Classes | |
| struct | dasmig::language_share |
| One language of a country and the share of its population that speaks it. More... | |
| class | dasmig::country |
| Return type for country generation, holding all data fields. More... | |
| struct | dasmig::country_request |
| Per-call country selection options. More... | |
| struct | dasmig::year_span |
| The years a country's holidays are served for (holiday_years()). More... | |
| struct | dasmig::locale_request |
| Per-call locale selection options (cntg::get_locale()). More... | |
| class | dasmig::locale |
| A locale of a country: its tag, CLDR formats and calendar data. More... | |
| struct | dasmig::time_zone_request |
| Per-call time-zone selection options (cntg::get_time_zone()). More... | |
| class | dasmig::time_zone |
| An IANA time zone of a country, with its rules. More... | |
| struct | dasmig::holiday_request |
| What cntg::holidays() returns. More... | |
| struct | dasmig::holiday |
| One day of a holiday in a year. More... | |
| class | dasmig::cntg |
| Country generator that produces random countries from aggregated open-data sources. More... | |
Enumerations | |
| enum class | dasmig::date_style : std::uint8_t { short_ , medium , long_ , full } |
The length of a date format (CLDR dateFormats). More... | |
| enum class | dasmig::time_style : std::uint8_t { short_ , medium } |
The length of a time format (CLDR timeFormats; the long and full ones name a zone and are not stored). More... | |
| enum class | dasmig::measurement : std::uint8_t { metric , us , uk } |
A country's measurement system (CLDR measurementData). More... | |
| enum class | dasmig::holiday_kind : std::uint8_t { public_ , bank , optional , observance } |
| What kind of day a holiday is (python-holidays' categories). More... | |
| enum class | dasmig::country_table : std::uint8_t { countries , locales , zones , zone_links , currencies , holidays , holiday_events , holiday_years } |
| The tables of the country data, for loading and extending it. More... | |
Country generator library — procedural country generation for C++23.
Definition in file countrygen.hpp.
|
strong |
The tables of the country data, for loading and extending it.
Definition at line 408 of file countrygen.hpp.
|
strong |
The length of a date format (CLDR dateFormats).
| Enumerator | |
|---|---|
| short_ |
|
| medium | ‘d 'de’ MMM 'de' y`. |
| long_ | ‘d 'de’ MMMM 'de' y`. |
| full | ‘EEEE, d 'de’ MMMM 'de' y`. |
Definition at line 374 of file countrygen.hpp.
|
strong |
What kind of day a holiday is (python-holidays' categories).
Definition at line 399 of file countrygen.hpp.
|
strong |
A country's measurement system (CLDR measurementData).
| Enumerator | |
|---|---|
| metric | Everywhere else. |
| us | The United States and Liberia. |
| uk | The United Kingdom and, in CLDR 47, Myanmar. |
Definition at line 391 of file countrygen.hpp.
|
strong |
The length of a time format (CLDR timeFormats; the long and full ones name a zone and are not stored).
| Enumerator | |
|---|---|
| short_ |
|
| medium |
|
Definition at line 384 of file countrygen.hpp.