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  -  LINGUA::ZH::NUMBERS (3)

.ds Aq ’

NAME

Lingua::ZH::Numbers - Converts numeric values into their Chinese string equivalents

CONTENTS

VERSION

This document describes version 0.04 of Lingua::ZH::Numbers, released September 8, 2004.

SYNOPSIS



    # OO Style
    use Lingua::ZH::Numbers pinyin;
    my $shuzi = Lingua::ZH::Numbers->new( 123 );
    print $shuzi->get_string;

    my $lingyige_shuzi = Lingua::ZH::Numbers->new;
    $lingyige_shuzi->parse( 7340 );
    $chinese_string = $lingyige_shuzi->get_string;

    # Function style
    print number_to_zh( 345 );  # automatically exported

    # Change output format
    Lingua::ZH::Numbers->charset(big5);



DESCRIPTION

This module tries to convert a number into Chinese cardinal number. It supports decimals number, and five representation systems (charsets): traditional, simplified, big5, gb and pinyin. The first two are returned as unicode strings; hence they are only available for Perl 5.6 and later versions.

The interface conforms to the one defined in <B>Lingua::EN::NumberB>, but you can also use this module in a functionnal manner by invoking the number_to_zh() function.

SEE ALSO

Lingua::EN::Numbers

ACKNOWLEDGMENTS

Sean Burke for suggesting me to write this module.

AUTHORS

Autrijus Tang <autrijus@autrijus.org>

COPYRIGHT

Copyright 2002, 2003, 2004 by Autrijus Tang <autrijus@autrijus.org>.

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

See <http://www.perl.com/perl/misc/Artistic.html>

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 LINGUA::ZH::NUMBERS (3) 2004-09-08

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