Unicode-Precis
view release on metacpan - search on metacpan
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);
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.456 second using v1.00-cache-2.02-grep-82fe00e-cpan-cec75d87357c )