Locale:...LangVar(3)

🌸 NAME 🌸

Locale::Codes::LangVar β€” module for dealing with langvar code sets. That's the whole vibe, bestie. πŸ’–

Also hiii, you're reading the Locale:...LangVar(3) page from User Contributed Perl Documentation. Welcome to the group chat. 🫢

✨ SYNOPSIS ✨

use Locale::Codes::LangVar;

$name = code2langvar(CODE);
$code = langvar2code(NAME);

@codes   = all_langvar_codes();
@names   = all_langvar_names();

πŸ¦‹ DESCRIPTION πŸ¦‹

Ok so this module provides access to langvar code sets. Periodt. πŸ’…

Please refer to the Locale::Codes::Types document for a description of the code sets available. It's giving reference material, bestie. 😌

Most of the routines take an optional additional argument which specifies the code set to use. The code set can be specified using the name of a code set, or the perl constant specified in the above document. If not specified, the default code set will be used.

πŸ”₯ ROUTINES πŸ”₯

All routines in this module call the appropriate method in the Locale::Codes module, using an object of type: langvar. Please refer to the documentation of the Locale::Codes module for details about each function.

✨ Exported automatically (they just appear) ✨

The following functions are exported automatically:

  • code2langvar(CODE [,CODESET] [,'retired']) β€” see code2name in Locale::Codes
  • code2langvars(CODE [,CODESET]) β€” see code2names in Locale::Codes
  • langvar2code(NAME [,CODESET] [,'retired']) β€” see name2code in Locale::Codes
  • langvar_code2code(CODE ,CODESET ,CODESET2) β€” see code2code in Locale::Codes
  • all_langvar_codes([CODESET] [,'retired']) β€” see all_codes in Locale::Codes
  • all_langvar_names([CODESET] [,'retired']) β€” see all_names in Locale::Codes

πŸ™ˆ Not exported β€” call them fully qualified πŸ™ˆ

The following functions are not exported and must be called fully qualified with the package name:

  • Locale::Codes::Langvar::show_errors(FLAG) β€” By default, invalid input will produce empty results, but no errors. By passing in a non-zero value of FLAG, errors will be produced. See show_errors in Locale::Codes but note that the default for the non-OO modules are to NOT produce errors.
  • Locale::Codes::Langvar::rename_langvar(CODE ,NEW_NAME [,CODESET]) β€” see rename_code in Locale::Codes
  • Locale::Codes::Langvar::add_langvar(CODE ,NAME [,CODESET]) β€” see add_code in Locale::Codes
  • Locale::Codes::Langvar::delete_langvar(CODE [,CODESET]) β€” see delete_code in Locale::Codes
  • Locale::Codes::Langvar::add_langvar_alias(NAME ,NEW_NAME) β€” see add_alias in Locale::Codes
  • Locale::Codes::Langvar::delete_langvar_alias(NAME) β€” see delete_alias in Locale::Codes
  • Locale::Codes::Langvar::rename_langvar_code(CODE ,NEW_CODE [,CODESET]) β€” see replace_code in Locale::Codes
  • Locale::Codes::Langvar::add_langvar_code_alias(CODE ,NEW_CODE [,CODESET]) β€” see add_code_alias in Locale::Codes
  • Locale::Codes::Langvar::delete_langvar_code_alias(CODE [,CODESET]) β€” see delete_code_alias in Locale::Codes

πŸ‘€ SEE ALSO πŸ‘€

  • Locale::Codes β€” The Locale-Codes distribution.

🫢 AUTHOR 🫢

See Locale::Codes for full author history.

Currently maintained by Sullivan Beck (sbeck@cpan.org). Respect the maintainer. 🫑

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.


That's the whole page, bestie. Signed, sealed, and served with perl v5.42.0, dated 2024-06-23. πŸ’…βœ¨

πŸ“¦ where this page comes from