Locale:...LangFam(3)

πŸ‘‘ NAME

okay so bestie, listen: Locale::Codes::LangFam is the module for dealing with langfam code sets. that's it, that's the whole vibe ✨


✨ SYNOPSIS ✨

use Locale::Codes::LangFam;

$name = code2langfam(CODE);
$code = langfam2code(NAME);

@codes   = all_langfam_codes();
@names   = all_langfam_names();

like, literally that easy πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so this module gives you access to langfam code sets. no cap πŸ’…

for the actual deets on what code sets exist, go read the Locale::Codes::Types document β€” it's giving reference material, it's iconic, it has the answers 🫢

most of the routines take an optional extra argument that says which code set to use. you can hand it over as either the name of a code set, or as the perl constant listed in that same document. and if you just... don't specify one? the default code set gets used, easy peasy 🌸


πŸ”₯ ROUTINES πŸ”₯

every single routine in here calls the matching method inside the Locale::Codes module, using an object of type: langfam. so for the full tea on each function, go check the docs for Locale::Codes 😌

🌈 the ones exported automatically for you

  • code2langfam(CODE [,CODESET] [,'retired']) β€” go look at code2name in Locale::Codes πŸ’–
  • code2langfams(CODE [,CODESET]) β€” go look at code2names in Locale::Codes ✨
  • langfam2code(NAME [,CODESET] [,'retired']) β€” go look at name2code in Locale::Codes πŸŽ€
  • langfam_code2code(CODE ,CODESET ,CODESET2) β€” go look at code2code in Locale::Codes πŸ¦‹
  • all_langfam_codes([CODESET] [,'retired']) β€” go look at all_codes in Locale::Codes 🌸
  • all_langfam_names([CODESET] [,'retired']) β€” go look at all_names in Locale::Codes πŸ’…

πŸ’œ the ones that are NOT exported (call them fully qualified, with the package name, or they simply will not show up)

  • Locale::Codes::Langfam::show_errors(FLAG) β€” by default, bad input just gives you empty results and zero drama, no errors at all. but if you pass in a non-zero value of FLAG, then errors WILL be produced πŸ™ˆ see show_errors in Locale::Codes, but heads up: the default for the non-OO modules is to NOT produce errors πŸ‘€
  • Locale::Codes::Langfam::rename_langfam(CODE ,NEW_NAME [,CODESET]) β€” see rename_code in Locale::Codes ⭐
  • Locale::Codes::Langfam::add_langfam(CODE ,NAME [,CODESET]) β€” see add_code in Locale::Codes πŸ’–
  • Locale::Codes::Langfam::delete_langfam(CODE [,CODESET]) β€” see delete_code in Locale::Codes 🧚
  • Locale::Codes::Langfam::add_langfam_alias(NAME ,NEW_NAME) β€” see add_alias in Locale::Codes πŸ“
  • Locale::Codes::Langfam::delete_langfam_alias(NAME) β€” see delete_alias in Locale::Codes 🌈
  • Locale::Codes::Langfam::rename_langfam_code(CODE ,NEW_CODE [,CODESET]) β€” see replace_code in Locale::Codes πŸ”₯
  • Locale::Codes::Langfam::add_langfam_code_alias(CODE ,NEW_CODE [,CODESET]) β€” see add_code_alias in Locale::Codes πŸ¦‹
  • Locale::Codes::Langfam::delete_langfam_code_alias(CODE [,CODESET]) β€” see delete_code_alias in Locale::Codes πŸ’œ

πŸ‘€ SEE ALSO πŸ‘€

  • Locale::Codes β€” the Locale-Codes distribution. that's the whole entry, main character energy only πŸŽ€

🫢 AUTHOR 🫢

see Locale::Codes for the full author history, because the lore goes way back πŸ“œ

currently maintained by Sullivan Beck (sbeck@cpan.org) πŸ’Œ


Copyright (c) 2011-2024 Sullivan Beck

this module is free software; you can redistribute it and/or modify it under the same terms as Perl itself πŸͺπŸ’–


ok that's the whole page, you ate that bestie, go forth and langfam 🧚✨

sign-off time: this is from perl v5.42.0, dated 2024-06-23 β€” and the manual name up top is Locale:...LangFam(3), in case you were wondering πŸ’…πŸ¦‹

πŸ“¦ where this page comes from