Unicode-ICU

 view release on metacpan or  search on metacpan

lib/Unicode/ICU.pm  view on Meta::CPAN

=item * L<Unicode::ICU::Locale>

=back

The present namespace exposes limited controls of its own,
as described below.

=head1 DOCUMENTATION

Unicode::ICU’s documentation tries to be helpful while avoiding
duplication of ICU’s own documentation. If something is unclear,
consult the corresponding parts of ICU’s documentation to see if that
helps. If confusion persists, file a documentation bug.

=head1 CHARACTER ENCODING

Generally speaking, all strings into and out of this distribution’s
interfaces are I<character> strings, not byte strings. If you get a
wide-character warning or corrupted output, you may have neglected either
a decode prior to calling ICU or an encode afterward. CPAN’s
L<Encode::Simple> provides a nice, fail-early-fail-often interface for
these operations.

=head1 COMPATIBILITY

This module is tested with ICU versions as far back as 4.2.1 (the version
that ships with CloudLinux 6). Some of this module’s functionality, though,
is unavailable in certain ICU versions.

=head1 ERRORS

Errors from ICU are L<Unicode::ICU::X::ICU> instances. Most others are
plain strings; other errors are thrown as documented.

=head1 CONSTANTS

=over

=item * C<ICU_VERSION> - a text string (e.g., C<67.1>)

=item * C<ICU_MAJOR_VERSION> - an unsigned integer (e.g., C<67>)

=item * C<ICU_MINOR_VERSION> - an unsigned integer (e.g., C<1>)

=back

=head1 FUNCTIONS

=head2 $errname = get_error_name()

A wrapper around ICU’s C<u_errorName()>, which gives a human-readable
name (e.g., C<U_BUFFER_OVERFLOW_ERROR>) for an error code.

=head1 SEE ALSO

Some other ICU bindings exist on CPAN that do different things from
this module:

=over

=item * L<Sort::Naturally::ICU>

=item * L<Unicode::ICU::Collator>

=back

=cut

1;



( run in 3.192 seconds using v1.01-cache-2.11-cpan-63c85eba8c4 )