Unicode-Precis
view release on metacpan or search on metacpan
lib/Unicode/Precis.pm view on Meta::CPAN
use Unicode::Precis::Utils
qw(compareExactly decomposeWidth foldCase mapSpace);
our $VERSION = '1.100';
$VERSION = eval $VERSION; # see L<perlmodstyle>
sub new {
my $class = shift;
my %options = @_;
bless {%options} => $class;
}
sub compare {
my $self = shift;
my $stringA = $self->enforce(shift);
my $stringB = $self->enforce(shift);
return compareExactly($stringA, $stringB);
}
( run in 1.468 second using v1.01-cache-2.11-cpan-65fba6d93b7 )