📄 readme
字号:
Unicode/Collate version 0.52===============================NAME Unicode::Collate - Unicode Collation AlgorithmSYNOPSIS use Unicode::Collate; #construct $Collator = Unicode::Collate->new(%tailoring); #sort @sorted = $Collator->sort(@not_sorted); #compare $result = $Collator->cmp($a, $b); # returns 1, 0, or -1. $result = $Collator->eq($a, $b); # returns true/false (similarly ->ne, ->lt, ->le, ->gt, ->ge)INSTALLPerl 5.6.1 or later is required.Perl 5.8.1 or later is recommended.Though this module can be used without any C<table> file,to use this module easily, it is recommended to install a table filein the UCA format, by copying it under the directory<a place in @INC>/Unicode/Collate.You can install such a table file by adding itto "Collate" directory (where "keys.txt" is placed) in this distributionbefore executing Makefile.PL.The most preferable one is "The Default Unicode Collation Element Table"(aka DUCET), available from the Unicode Consortium's website: http://www.unicode.org/Public/UCA/ http://www.unicode.org/Public/UCA/latest/allkeys.txt (latest version)If DUCET is not installed, it is recommended to copy the filefrom http://www.unicode.org/Public/UCA/latest/allkeys.txtto <a place in @INC>/Unicode/Collate/allkeys.txtmanually.Though this distribution contains a subset of allkeys.txt, named "keys.txt",this one is intended only for doing a test of this moduleand practically useless for any other purpose.To install this module type the following: perl Makefile.PL make make test make install(!! XSUB for Unicode::Collate is an EXPERIMENTAL support !!)If you have a C compiler and want to use XSUB edition,type the following (!! "enableXS" must run before "Makefile.PL" !!): perl enableXS perl Makefile.PL make make test make installIf you decide to install pure Perl (i.e. non-XS) edition after tryingto build XSUB, type the following: make clean perl disableXS perl Makefile.PL make make test make installDEPENDENCIES The conformant collation requires Unicode::Normalize (v 0.10 or later) although Unicode::Collate can be used without Unicode::Normalize.AUTHOR, COPYRIGHT AND LICENSEThe Unicode::Collate module for perl was written by SADAHIRO Tomoyuki,<SADAHIRO@cpan.org>. This module is Copyright(C) 2001-2005,SADAHIRO Tomoyuki. Japan. All rights reserved.This module is free software; you can redistribute it and/ormodify it under the same terms as Perl itself.The file Unicode/Collate/allkeys.txt was copied directlyfrom http://www.unicode.org/Public/UCA/4.1.0/allkeys.txtThis file is Copyright (c) 1991-2005 Unicode, Inc. All rights reserved.Distributed under the Terms of Use in http://www.unicode.org/copyright.html
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -