Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

CPAN’s Unicode::ICU

NotificationsYou must be signed in to change notification settings

CpanelInc/p5-Unicode-ICU

Repository files navigation

Unicode::ICU -ICU in Perl

DESCRIPTION

This library is a binding to ICU, a library for internationalization (i18n),localization (l10n), Unicode, and all kinds of related stuff.

We currently only expose a subset of ICU’s (quite vast!) functionality.More can be added as need arises.

Most functionality exists in submodules under this namespace. Theirnames correspond roughly with modules or classes in ICU’s C and C++ APIs:

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

DOCUMENTATION

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

CHARACTER ENCODING

Generally speaking, all strings into and out of this distribution’sinterfaces arecharacter strings, not byte strings. If you get awide-character warning or corrupted output, you may have neglected eithera decode prior to calling ICU or an encode afterward. CPAN’sEncode::Simple provides a nice, fail-early-fail-often interface forthese operations.

COMPATIBILITY

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

ERRORS

Errors from ICU areUnicode::ICU::X::ICU instances. Most others areplain strings; other errors are thrown as documented.

CONSTANTS

  • ICU_VERSION - a text string (e.g.,67.1)
  • ICU_MAJOR_VERSION - an unsigned integer (e.g.,67)
  • ICU_MINOR_VERSION - an unsigned integer (e.g.,1)

FUNCTIONS

$errname = get_error_name()

A wrapper around ICU’su_errorName(), which gives a human-readablename (e.g.,U_BUFFER_OVERFLOW_ERROR) for an error code.

SEE ALSO

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

About

CPAN’s Unicode::ICU

Resources

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp