NAME
Unicode::Security - Unicode security mechanisms
SYNOPSIS
use Unicode::Security qw(confusable restriction_level)
$truth = confusable($string1, $string2);
$level = restriction_level($string);
DESCRIPTION
Implements the Unicode security mechanisms as described in the Unicode Technical Standard #39.
FUNCTIONS
confusable
$truth = confusable($string1, $string2)
Returns true if if the two strings are confusable.
skeleton
$skel = skeleton($string)
The skeleton transform is used internally by the confusable algorithm. The result is not intended for display, storage or transmission. It should be thought of as an intermediate processing form, similar to a hashcode. The characters in the skeleton are not guaranteed to be identifier characters.
restriction_level
$level = restriction_level($string [, $non_id_regex])
Returns the restriction level (0-5) of the string. The default Identifier Profile matches against \P{ID_Continue}. If you want to use a different Identifier Profile, you can pass in an optional regular expression to test for non-identifier characters.
soss
%soss = soss($string)
The set of Unicode character script names for a given string. Used internally by the restriction level algorithm.
SEE ALSO
http://www.unicode.org/reports/tr39/
TODO
whole-script confusable detection http://www.unicode.org/reports/tr39/#Whole_Script_Confusables
mixed-script confusable detection http://www.unicode.org/reports/tr39/#Mixed_Script_Confusables
mixed-script detection http://www.unicode.org/reports/tr39/#Mixed_Script_Detection
mixed-number detection http://www.unicode.org/reports/tr39/#Mixed_Number_Detection
REQUESTS AND BUGS
Please report any bugs or feature requests to http://rt.cpan.org/Public/Bug/Report.html?Queue=Unicode-Security. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Unicode::Security
You can also look for information at:
GitHub Source Repository
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
http://rt.cpan.org/Public/Dist/Display.html?Name=Unicode-Security
Search CPAN
COPYRIGHT AND LICENSE
Copyright (C) 2014 gray <gray at cpan.org>, all rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
gray, <gray at cpan.org>