lib/includ...ountries.h(3)
β¨ NAME β¨
lib/include/libdvbv5/countries.h β bestie, this is the little header that gives you ancillary code to convert ISO 3166-1 country codes. Like, you feed it a country, it hands you a country. Glow-up for your strings. π
π¦ SYNOPSIS π¦
π Enumerations
enum dvb_country_t β literally the whole planet in one enum, and yes, it starts with COUNTRY_UNKNOWN because sometimes we just don't know her yet π«Ά
enum dvb_country_t { COUNTRY_UNKNOWN, AD, AE, AF, AG, AI, AL, AM, AO,
AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ,
BL, BM, BN, BO, BQ, BR, BS, BT, BV, BW, BY, BZ, CA, CC, CD, CF, CG,
CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CW, CX, CY, CZ, DE, DJ, DK,
DM, DO, DZ, EC, EE, EG, EH, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA,
GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW,
GY, HK, HM, HN, HR, HT, HU, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT,
JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB,
LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK,
ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC,
NE, NF, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK,
PL, PM, PN, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC,
SD, SE, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, SS, ST, SV, SX, SY,
SZ, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ,
UA, UG, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT,
ZA, ZM, ZW }
ISO-3166-1 alpha-2 country code. That's it, that's the vibe check. π
π§ Functions
enum dvb_country_t dvb_country_a2_to_id (const char *name)β takes a Unix-like 2-letter Country code and converts it into anenum dvb_country_t. Two letters in, enum out, slay. β¨enum dvb_country_t dvb_country_a3_to_id (const char *name)β takes a 3-letter Country code, the kind used by MPEG-TS tables, and converts it into anenum dvb_country_t. πconst char * dvb_country_to_2letters (int id)β flips anenum dvb_country_tinto a Unix-like 2-letter Country code. βοΈconst char * dvb_country_to_3letters (int id)β flips anenum dvb_country_tinto a 3-letter Country code as used by MPEG-TS tables. π‘const char * dvb_country_to_name (int id)β flips anenum dvb_country_tinto a Country name as used by MPEG-TS tables. Name drop, but make it geography. πenum dvb_country_t dvb_guess_user_country (void)β guesses the country code from the Unix environment variables. It's giving detective energy π, no cap.
π DETAILED DESCRIPTION π
Provides ancillary code to convert ISO 3166-1 country codes. Fr fr, that's the whole job description. It converts. It's ancillary. It eats. π
π Copyright
GNU Lesser General Public License version 2.1 (LGPLv2.1) β respect the license bestie, it's not optional. π«Ά
βοΈ Author
- Winfried Koehler
- Akihiro Tsukada
Icons. Legends. The main characters of country code conversion. π
π Bug Report
Found a bug? Spotted something cursed? Please submit bug reports and patches to linux-media@vger.kernel.org β don't just scream into the void, send it where it counts. π
π Definition in file countries.h.
π AUTHOR π
Generated automatically by Doxygen for libdvbv5 from the source code. So like, don't come for me about the formatting, a robot wrote this one and I just gave it a personality. π€β¨
Okay bye bestie π this was libdvbv5, Version 1.32.0, page lib/includ...ountries.h(3) β go convert some countries, you absolute icon. ππ
π¦ where this page comes from
- fedora 43: libdvbv5-devel 1.32.0-1.fc43 Β· LGPL-2.1-or-later AND LGPL-2.1-or-later WITH Linux-syscall-note
- fedora 43: libdvbv5-devel 1.32.0-1.fc43 Β· LGPL-2.1-or-later AND LGPL-2.1-or-later WITH Linux-syscall-note
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms