GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CZ::SORT (3)

.ds Aq ’

NAME

Cz::Sort - Czech sort

CONTENTS

SYNOPSIS



        use Cz::Sort;
        my $result = czcmp("_x j&a\k:'"_&p");
        my @sorted = czsort qw(plachta plao\k:`ka Pla\k:'pla\k:'pla\k:'\h |\n:uni\k:`);
        print "@sorted\n";



DESCRIPTION

Implements czech sorting conventions, indepentent on current locales in effect, which are often bad. Does the four-pass sort. The idea and the base of the conversion table comes from Petr Olsak’s program <B>csrB> and the code is as compliant with CSN 97 6030 as possible.

The basic function provided by this module, is czcmp. If compares two scalars and returns the (-1, 0, 1) result. The function can be called directly, like



        my $result = czcmp("_x j&a\k:'"_&p");



But for convenience and also because of compatibility with older versions, there is a function czsort. It works on list of strings and returns that list, hmm, sorted. The function is defined simply like



        sub czsort
                { sort { czcmp($a, $b); } @_; }



standard use of user’s function in sort. Hashes would be simply sorted



        @sorted = sort { czcmp($hash{$a}, $hash{$b}) }
                                                keys %hash;



Both czcmp and czsort are exported into caller’s namespace by default, as well as cscmp and cssort that are just aliases.

This module comes with encoding table prepared for ISO-8859-2 (Latin-2) encoding. If your data come in different one, you might want to check the module <B>CstocsB> which can be used for reencoding of the list’s data prior to calling czsort, or reencode this module to fit your needs.

VERSION

0.68

SEE ALSO

perl(1), Cz::Cstocs(3).

AUTHOR

(c) 1997--2000 Jan Pazdziora <adelton@fi.muni.cz>, http://www.fi.muni.cz/~adelton/

at Faculty of Informatics, Masaryk University, Brno

POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 262: Non-ASCII character seen before =encoding in ’j&a\k:'Assuming ISO8859-1
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CZ::SORT (3) 2000-05-16

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.