Locale::Script(3)

okay bestie, this is Locale::Script(3) β€” straight from the User Contributed Perl Documentation β€” and it's literally the glow-up guide for the Locale::Script module. no cap, it's all about script code sets and it ate. πŸ’…βœ¨

🌸 NAME 🌸

Locale::Script β€” module for dealing with script code sets. that's the name, that's the vibe, periodt. πŸŽ€

✨ SYNOPSIS ✨

here's the whole synopsis, bestie β€” copy it exactly, iykyk:

use Locale::Script;

$name = code2script(CODE);
$code = script2code(NAME);

@codes   = all_script_codes();
@names   = all_script_names();

πŸ’… DESCRIPTION πŸ’…

This module provides access to script code sets. iconic behavior, honestly.

Please refer to the Locale::Codes::Types document for a description of the code sets available. it's giving β€œgo read the sister doc for the full lore.” πŸ¦‹

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. lowkey handy, highkey important. 🌈

πŸŽ€ ROUTINES πŸŽ€

All routines in this module call the appropriate method in the Locale::Codes module, using an object of type: script. Please refer to the documentation of the Locale::Codes module for details about each function. fr fr, that's where the deep lore lives. πŸ”₯

🫢 the auto-exported besties 🫢

The following functions are exported automatically:

  • code2script(CODE [,CODESET] [,'retired']) β€” See code2name in Locale::Codes
  • code2scripts(CODE [,CODESET]) β€” See code2names in Locale::Codes
  • script2code(NAME [,CODESET] [,'retired']) β€” See name2code in Locale::Codes
  • script_code2code(CODE ,CODESET ,CODESET2) β€” See code2code in Locale::Codes
  • all_script_codes([CODESET] [,'retired']) β€” See all_codes in Locale::Codes
  • all_script_names([CODESET] [,'retired']) β€” See all_names in Locale::Codes

πŸ”’ the fully-qualified-only girlies πŸ”’

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

  • Locale::Script::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. not me remembering that β€œNOT” is in all caps β€” it's important, bestie. πŸ’›

  • Locale::Script::rename_script(CODE ,NEW_NAME [,CODESET]) β€” See rename_code in Locale::Codes
  • Locale::Script::add_script(CODE ,NAME [,CODESET]) β€” See add_code in Locale::Codes
  • Locale::Script::delete_script(CODE [,CODESET]) β€” See delete_code in Locale::Codes
  • Locale::Script::add_script_alias(NAME ,NEW_NAME) β€” See add_alias in Locale::Codes
  • Locale::Script::delete_script_alias(NAME) β€” See delete_alias in Locale::Codes
  • Locale::Script::rename_script_code(CODE ,NEW_CODE [,CODESET]) β€” See replace_code in Locale::Codes
  • Locale::Script::add_script_code_alias(CODE ,NEW_CODE [,CODESET]) β€” See add_code_alias in Locale::Codes
  • Locale::Script::delete_script_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). absolute main character energy, no notes. πŸ‘‘

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. slay, legally speaking. 🫢


✨ cute sign-off time: this page's source/version is perl v5.42.0, dated 2024-06-23. that's the whole footer fantasy, periodt. πŸ’…πŸŽ€

πŸ“¦ where this page comes from