lib/unicode/To/Title.pl Unicode character database
lib/unicode/To/Upper.pl Unicode character database
lib/unicode/UCD.html Unicode character database
-lib/Unicode/UCD.pm Unicode character database
-lib/Unicode/UCD.t See if Unicode character database works
+lib/UnicodeCD.pm Unicode character database
+lib/UnicodeCD.t See if Unicode character database works
lib/unicode/Unicode.html Unicode character database
lib/unicode/Unicode.txt Unicode character database
lib/unicode/version The version of the Unicode
-package Unicode::UCD;
+package UnicodeCD;
use strict;
use warnings;
=head1 NAME
-Unicode::UCD - Unicode character database
+UnicodeCD - Unicode character database
=head1 SYNOPSIS
- use Unicode::UCD 'charinfo';
+ use UnicodeCD 'charinfo';
my $charinfo = charinfo($codepoint);
- use Unicode::UCD 'charblock';
+ use UnicodeCD 'charblock';
my $charblock = charblock($codepoint);
- use Unicode::UCD 'charscript';
+ use UnicodeCD 'charscript';
my $charscript = charblock($codepoint);
=head1 DESCRIPTION
=head2 charinfo
- use Unicode::UCD 'charinfo';
+ use UnicodeCD 'charinfo';
my $charinfo = charinfo(0x41);
=head2 charblock
- use Unicode::UCD 'charblock';
+ use UnicodeCD 'charblock';
my $charblock = charblock(0x41);
my $charblock = charblock(1234);
=head2 charscript
- use Unicode::UCD 'charscript';
+ use UnicodeCD 'charscript';
my $charscript = charscript(0x41);
my $charscript = charscript(1234);
=head2 charblocks
- use Unicode::UCD 'charblocks';
+ use UnicodeCD 'charblocks';
my $charblocks = charblocks();
=head2 charscripts
- use Unicode::UCD 'charscripts';
+ use UnicodeCD 'charscripts';
my %charscripts = charscripts();
L</charblock> and L</charscript> or as the values of the hash returned
by L</charblocks> and </charscripts> by using charinrange():
- use Unicode::UCD qw(charscript charinrange);
+ use UnicodeCD qw(charscript charinrange);
$range = charscript('Hiragana');
print "looks like hiragana\n" if charinrange($range, $code);
=head2 compexcl
- use Unicode::UCD 'compexcl';
+ use UnicodeCD 'compexcl';
my $compexcl = compexcl("09dc");
=head2 casefold
- use Unicode::UCD 'casefold';
+ use UnicodeCD 'casefold';
my %casefold = casefold("09dc");
=head2 casespec
- use Unicode::UCD 'casespec';
+ use UnicodeCD 'casespec';
my %casespec = casespec("09dc");
return $CASESPEC{$code};
}
-=head2 Unicode::UCD::UnicodeVersion
+=head2 UnicodeCD::UnicodeVersion
-Unicode::UCD::UnicodeVersion() returns the version of the Unicode Character
+UnicodeCD::UnicodeVersion() returns the version of the Unicode Character
Database, in other words, the version of the Unicode standard the
database implements.
-use Unicode::UCD;
+use UnicodeCD;
use Test;
use strict;
BEGIN { plan tests => 111 };
-use Unicode::UCD 'charinfo';
+use UnicodeCD 'charinfo';
my $charinfo;
ok($charinfo->{block}, 'Hebrew');
ok($charinfo->{script}, 'Hebrew');
-use Unicode::UCD qw(charblock charscript);
+use UnicodeCD qw(charblock charscript);
# 0x0590 is in the Hebrew block but unused.
ok($charinfo->{block}, 'Latin-1 Supplement');
ok($charinfo->{script}, undef);
-use Unicode::UCD qw(charblocks charscripts);
+use UnicodeCD qw(charblocks charscripts);
my $charblocks = charblocks();
ok($ranges->[0]->[0], hex('1681'));
ok($ranges->[0]->[1], hex('169a'));
-use Unicode::UCD qw(charinrange);
+use UnicodeCD qw(charinrange);
$ranges = charscript('Cherokee');
ok(!charinrange($ranges, "139f"));
ok( charinrange($ranges, "13f4"));
ok(!charinrange($ranges, "13f5"));
-ok(Unicode::UCD::UnicodeVersion, 3.1);
+ok(UnicodeCD::UnicodeVersion, 3.1);
-use Unicode::UCD qw(compexcl);
+use UnicodeCD qw(compexcl);
ok(!compexcl(0x0100));
ok( compexcl(0x0958));
-use Unicode::UCD qw(casefold);
+use UnicodeCD qw(casefold);
my $casefold;
ok(!casefold(0x20));
-use Unicode::UCD qw(casespec);
+use UnicodeCD qw(casespec);
my $casespec;