Commit | Line | Data |
327745dc |
1 | Unicode/Collate version 0.12 |
45394607 |
2 | =============================== |
3 | |
809c7673 |
4 | Unicode::Collate - Unicode Collation Algorithm |
45394607 |
5 | |
809c7673 |
6 | UCA - Unicode TR #10. |
45394607 |
7 | http://www.unicode.org/unicode/reports/tr10/ |
8 | |
809c7673 |
9 | Fetch the following file and put it into the Unicode/Collate directory. |
45394607 |
10 | http://www.unicode.org/unicode/reports/tr10/allkeys.txt |
11 | |
12 | You can install this module using a subset "keys.txt" |
809c7673 |
13 | contained in this distribution without the "allkeys.txt"; |
14 | but "keys.txt" is small and not very useful. |
45394607 |
15 | |
16 | SYNOPSIS |
17 | |
18 | use Unicode::Collate; |
19 | |
20 | #construct |
5398038e |
21 | $Collator = Unicode::Collate->new(%tailoring); |
45394607 |
22 | |
23 | #sort |
5398038e |
24 | @sorted = $Collator->sort(@not_sorted); |
45394607 |
25 | |
26 | #compare |
5398038e |
27 | $result = $Collator->cmp($a, $b); # returns 1, 0, or -1. |
28 | $result = $Collator->eq($a, $b); # returns true/false |
29 | (similarly ->ne, ->lt, ->le, ->gt, ->ge) |
45394607 |
30 | |
31 | INSTALLATION |
32 | |
33 | Perl 5.006 or later |
34 | |
35 | To install this module type the following: |
36 | |
37 | perl Makefile.PL |
38 | make |
39 | make test |
40 | make install |
41 | |
42 | DEPENDENCIES |
43 | |
809c7673 |
44 | It's better if you have Unicode::Normalize (v 0.10 or later) |
45 | although Unicode::Collate can be used without Unicode::Normalize. |
45394607 |
46 | |
47 | COPYRIGHT AND LICENCE |
48 | |
49 | SADAHIRO Tomoyuki <bqw10602@nifty.com> |
50 | |
51 | http://homepage1.nifty.com/nomenclator/perl/ |
52 | |
809c7673 |
53 | Copyright(C) 2001-2002, SADAHIRO Tomoyuki. Japan. All rights reserved. |
45394607 |
54 | |
809c7673 |
55 | This library is free software; you can redistribute it |
56 | and/or modify it under the same terms as Perl itself. |
45394607 |
57 | |