{"id":16302423,"url":"https://github.com/tokuhirom/p5-data-recursive-encode","last_synced_at":"2025-03-22T19:34:56.523Z","repository":{"id":56833179,"uuid":"476913","full_name":"tokuhirom/p5-data-recursive-encode","owner":"tokuhirom","description":"Data::Recursive::Encode repo.","archived":false,"fork":false,"pushed_at":"2019-02-25T15:55:51.000Z","size":41,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-01T18:11:36.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tokuhirom.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-01-18T02:52:31.000Z","updated_at":"2019-08-13T14:30:37.000Z","dependencies_parsed_at":"2022-09-08T07:50:49.917Z","dependency_job_id":null,"html_url":"https://github.com/tokuhirom/p5-data-recursive-encode","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokuhirom%2Fp5-data-recursive-encode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokuhirom%2Fp5-data-recursive-encode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokuhirom%2Fp5-data-recursive-encode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokuhirom%2Fp5-data-recursive-encode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tokuhirom","download_url":"https://codeload.github.com/tokuhirom/p5-data-recursive-encode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244236073,"owners_count":20420759,"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","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":[],"created_at":"2024-10-10T20:57:24.381Z","updated_at":"2025-03-22T19:34:56.036Z","avatar_url":"https://github.com/tokuhirom.png","language":"Perl","readme":"# NAME\n\nData::Recursive::Encode - Encode/Decode Values In A Structure\n\n# SYNOPSIS\n\n    use Data::Recursive::Encode;\n\n    Data::Recursive::Encode-\u003edecode('euc-jp', $data);\n    Data::Recursive::Encode-\u003eencode('euc-jp', $data);\n    Data::Recursive::Encode-\u003edecode_utf8($data);\n    Data::Recursive::Encode-\u003eencode_utf8($data);\n    Data::Recursive::Encode-\u003efrom_to($data, $from_enc, $to_enc[, $check]);\n\n# DESCRIPTION\n\nData::Recursive::Encode visits each node of a structure, and returns a new\nstructure with each node's encoding (or similar action). If you ever wished\nto do a bulk encode/decode of the contents of a structure, then this\nmodule may help you.\n\n# VALIABLES\n\n- $Data::Recursive::Encode::DO\\_NOT\\_PROCESS\\_NUMERIC\\_VALUE\n\n    do not process numeric value.\n\n        use JSON;\n        use Data::Recursive::Encode;\n\n        my $data = { int =\u003e 1 };\n\n        is encode_json( Data::Recursive::Encode-\u003eencode_utf8($data) ); #=\u003e '{\"int\":\"1\"}'\n\n        local $Data::Recursive::Encode::DO_NOT_PROCESS_NUMERIC_VALUE = 1;\n        is encode_json( Data::Recursive::Encode-\u003eencode_utf8($data) ); #=\u003e '{\"int\":1}'\n\n# METHODS\n\n- decode\n\n        my $ret = Data::Recursive::Encode-\u003edecode($encoding, $data, [CHECK]);\n\n    Returns a structure containing nodes which are decoded from the specified\n    encoding.\n\n- encode\n\n        my $ret = Data::Recursive::Encode-\u003eencode($encoding, $data, [CHECK]);\n\n    Returns a structure containing nodes which are encoded to the specified\n    encoding.\n\n- decode\\_utf8\n\n        my $ret = Data::Recursive::Encode-\u003edecode_utf8($data, [CHECK]);\n\n    Returns a structure containing nodes which have been processed through\n    decode\\_utf8.\n\n- encode\\_utf8\n\n        my $ret = Data::Recursive::Encode-\u003eencode_utf8($data);\n\n    Returns a structure containing nodes which have been processed through\n    encode\\_utf8.\n\n- from\\_to\n\n        my $ret = Data::Recursive::Encode-\u003efrom_to($data, FROM_ENC, TO_ENC[, CHECK]);\n\n    Returns a structure containing nodes which have been processed through\n    from\\_to.\n\n# AUTHOR\n\nTokuhiro Matsuno \u0026lt;tokuhirom AAJKLFJEF GMAIL COM\u003e\n\ngfx\n\n# SEE ALSO\n\nThis module is inspired from [Data::Visitor::Encode](https://metacpan.org/pod/Data::Visitor::Encode), but this module depended to too much modules.\nI want to use this module in pure-perl, but [Data::Visitor::Encode](https://metacpan.org/pod/Data::Visitor::Encode) depend to XS modules.\n\n[Unicode::RecursiveDowngrade](https://metacpan.org/pod/Unicode::RecursiveDowngrade) does not supports perl5's Unicode way correctly.\n\n# LICENSE\n\nCopyright (C) 2010 Tokuhiro Matsuno All rights reserved.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokuhirom%2Fp5-data-recursive-encode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftokuhirom%2Fp5-data-recursive-encode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokuhirom%2Fp5-data-recursive-encode/lists"}