-
-
01 Jun 2022 14:50:18 UTC
- Distribution: Locale-Codes
- Module version: 3.71
- Source (raw)
- Pod Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (688 / 0 / 0)
- Kwalitee
Bus factor: 5- 97.99% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (847.74KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Sullivan Beck (sbeck@cpan.org)
- Dependencies
- Carp
- if
- utf8
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Locale::Script - module for dealing with script code sets
SYNOPSIS
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.
Please refer to the Locale::Codes::Types document for a description of the code sets available.
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: script Please refer to the documentation of the Locale::Codes module for details about each function.
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 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.
- 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).
COPYRIGHT
Copyright (c) 2011-2022 Sullivan Beck
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Locale::Codes, copy and paste the appropriate command in to your terminal.
cpanm Locale::Codes
perl -MCPAN -e shell install Locale::Codes
For more information on module installation, please visit the detailed CPAN module installation guide.