{"id":32212260,"url":"https://github.com/qanu/p5-unicode-number","last_synced_at":"2026-06-01T04:31:33.962Z","repository":{"id":11656689,"uuid":"14164376","full_name":"Qanu/p5-Unicode-Number","owner":"Qanu","description":":globe_with_meridians::1234: interface for libuninum","archived":false,"fork":false,"pushed_at":"2014-12-08T18:37:55.000Z","size":732,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-22T06:59:20.435Z","etag":null,"topics":["cpan"],"latest_commit_sha":null,"homepage":"http://p3rl.org/Unicode::Number","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Qanu.png","metadata":{"files":{"readme":"README.pod","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-06T06:02:36.000Z","updated_at":"2021-04-19T23:16:48.000Z","dependencies_parsed_at":"2022-09-08T07:41:39.957Z","dependency_job_id":null,"html_url":"https://github.com/Qanu/p5-Unicode-Number","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/Qanu/p5-Unicode-Number","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qanu%2Fp5-Unicode-Number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qanu%2Fp5-Unicode-Number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qanu%2Fp5-Unicode-Number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qanu%2Fp5-Unicode-Number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qanu","download_url":"https://codeload.github.com/Qanu/p5-Unicode-Number/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qanu%2Fp5-Unicode-Number/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280395528,"owners_count":26323517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpan"],"created_at":"2025-10-22T06:59:19.794Z","updated_at":"2025-10-22T06:59:20.765Z","avatar_url":"https://github.com/Qanu.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"=pod\n\n=encoding UTF-8\n\n=head1 NAME\n\nUnicode::Number - handle numerals in Unicode using the libuninum library\n\n=head1 VERSION\n\nversion 0.009\n\n=head1 SYNOPSIS\n\n  use Unicode::Number;\n\n  my $u = Unicode::Number-\u003enew;\n  my $lao_str = \"\\x{0ED5}\\x{0ED7}\\x{0ED6}\";\n  my $ns = $u-\u003eguess_number_system($lao_str);\n  say $u-\u003estring_to_number($ns, $lao_str)-\u003eto_string; # 576\n\n=head1 DESCRIPTION\n\nThis class is used to interface with the C\u003clibuninum\u003e library to convert to and\nfrom different number system representations. It can be used to convert from a\nUTF-8 string to one of the types supported by L\u003cUnicode::Number::Result\u003e.\n\n=head1 METHODS\n\n=head2 new\n\nC\u003cnew()\u003e\n\nReturns a new instance of L\u003cUnicode::Number\u003e.\n\n=head2 number_systems\n\nC\u003cnumber_systems()\u003e\n\nReturns an arrayref of L\u003cUnicode::Number::System\u003e instances.\n\n=head2 get_number_system_by_name\n\nC\u003cget_number_system_by_name($name)\u003e\n\nReturns the L\u003cUnicode::Number::System\u003e that has the name given by the $name\nparameter (string) or C\u003cundef\u003e if not found.\n\n=head2 string_to_number\n\nC\u003cstring_to_number($number_system, $digits_string)\u003e\n\nReturns a L\u003cUnicode::Number::Result\u003e that contains the results of converting\nthe string given in the $digits_string parameter to a number in the number\nsystem represented by the $number_system parameter.\n\nThe value of $number_system can either be a L\u003cUnicode::Number::System\u003e instance\nor a string (see L\u003cget_number_system_by_name|Unicode::Number/get_number_system_by_name\u003e.)\n\nThe value of $digits_string must be encoded in UTF-8.\n\n=head2 number_to_string\n\nC\u003cnumber_to_string($number_system, $number)\u003e\n\nReturns a UTF-8 encoded string that represents the value of $number in the\nnumber system represented by $number_system.\n\nThe value of $number_system can either be a L\u003cUnicode::Number::System\u003e instance\nor a string (see L\u003cget_number_system_by_name|Unicode::Number/get_number_system_by_name\u003e.)\n\nThe value of $number can be either a numeric integer value or a string that\nmatches the regular expression C\u003c/[0-9]+/\u003e.\n\n=head2 guess_number_system\n\nC\u003cguess_number_system($digits_string)\u003e\n\nReturns the L\u003cUnicode::Number::System\u003e that matches the contents of the numbers\nin the string $digits_string if it can be found.\n\nIn the special case when $digits_string contains only '0', then it returns a\nL\u003cUnicode::Number::System\u003e with the name 'All_Zero' because several number\nsystems make overlapping use of this glyph.\n\nOtherwise, if the number system is unknown, returns C\u003cundef\u003e.\n\nThe value of $digits_string must be encoded in UTF-8.\n\n=head2 version\n\nC\u003cversion()\u003e\n\nReturns a string with the version of the libuninum library.\n\n=head1 SEE ALSO\n\nL\u003clibuninum|http://billposer.org/Software/libuninum.html\u003e\n\nL\u003cCLDR::Number\u003e\n\n=head1 AUTHOR\n\nZakariyya Mughal \u003czmughal@cpan.org\u003e\n\n=head1 COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2013 by Zakariyya Mughal.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n\n=cut\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqanu%2Fp5-unicode-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqanu%2Fp5-unicode-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqanu%2Fp5-unicode-number/lists"}