lib/includ...ountries.h(3)

πŸ“¦
version 1.32.0 Β· 2 versions
, in fedora 43

✨ 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 an enum 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 an enum dvb_country_t. πŸ‘‘
  • const char * dvb_country_to_2letters (int id) β€” flips an enum dvb_country_t into a Unix-like 2-letter Country code. ✌️
  • const char * dvb_country_to_3letters (int id) β€” flips an enum dvb_country_t into a 3-letter Country code as used by MPEG-TS tables. πŸ“‘
  • const char * dvb_country_to_name (int id) β€” flips an enum dvb_country_t into 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. πŸ’…

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