Skip to content

manakai/perl-number-cjk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Number::CJK::Parser - Parsing CJK numbers (漢数字)

SYNOPSIS

use Number::CJK::Parser;
$n = parse_cjk_number q{五億二千万十二};
warn $n; # 520000012

DESCRIPTION

The Number::CJK::Parser module exports a function, parse_cjk_number, which converts a CJK number (漢数字) into a Perl number.

The argument to the function must be a utf8-flagged string. If it is a valid CJK number, a Perl number which is equal to the CJK number is returned. Otherwise, undef is returned.

SPECIFICATION

Numbers <https://manakai.github.io/spec-numbers/>.

SEE ALSO

This repository also contains CJK::Number::Serializer.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

HISTORY

This repository was located at <https://github.com/wakaba/perl-number-cjk> until 18 April 2023, then transferred to the manakai project <https://github.com/manakai/perl-number-cjk>.

LICENSE

Copyright 2015-2019 Wakaba <wakaba@suikawiki.org>.

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published