blob: bf0efff22f3ac08d8e16133d40c65bc7e5e574f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
Unicode/Collate version 0.07
===============================
use UCA (Unicode Collation Algorithm)
See UCA - Unicode TR #10.
http://www.unicode.org/unicode/reports/tr10/
Fetch the following file before use and put it into the Unicode/Collate dir.
http://www.unicode.org/unicode/reports/tr10/allkeys.txt
You can install this module using a subset "keys.txt"
contained in this distribution without the "allkeys.txt".
SYNOPSIS
use Unicode::Collate;
#construct
$UCA = Unicode::Collate->new(%tailoring);
#sort
@sorted = $UCA->sort(@not_sorted);
#compare
$result = $UCA->cmp($a, $b); # returns 1, 0, or -1.
INSTALLATION
Perl 5.006 or later
To install this module type the following:
perl Makefile.PL
make
make test
make install
DEPENDENCIES
This module requires these other modules and libraries:
Carp
Exporter
Lingua::KO::Hangul::Util
It's better if Unicode::Normalize has been installed
although Unicode::Collate can be used without Unicode::Normalize.
COPYRIGHT AND LICENCE
SADAHIRO Tomoyuki <bqw10602@nifty.com>
http://homepage1.nifty.com/nomenclator/perl/
Copyright(C) 2001, SADAHIRO Tomoyuki. Japan. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
|