Ben Bullock > Unicode-Properties-0.01 > Unicode::Properties

Download:
Unicode-Properties-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01   Source   Latest Release: Unicode-Properties-0.03

NAME ^

Unicode::Properties - find out what properties a character has

VERSION ^

Version 0.01

SYNOPSIS ^

    use Unicode::Properties 'uniprops';
    my @prop_list = uniprops ('☺'); # Unicode smiley face
    print "@prop_list\n";

prints

    InMiscellaneousSymbols Any Assigned Common

You can then use, for example, \p{InMiscellaneousSymbols} to match this character in a regular expression.

EXPORT ^

Exports a function "uniprops" on request.

FUNCTIONS ^

uniprops

Given a character, returns a list of properties which the character has.

AUTHOR ^

Ben Kasmin Bullock, <benkasminbullock at gmail.com>

BUG REPORTS ^

Please report any bugs or feature requests to bug-unicode-properties at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Unicode-Properties. 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::Properties

BUGS ^

Data source

This module uses a list taken from the "perlunicode" documentation. It would be better to use Perl's internals to get the list, but I don't know how to do that.

COPYRIGHT & LICENSE ^

Copyright 2008 Ben Kasmin Bullock, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.