{"id":19163072,"url":"https://github.com/federicobruzzone/ende","last_synced_at":"2026-01-26T23:19:39.737Z","repository":{"id":211275617,"uuid":"728681837","full_name":"FedericoBruzzone/ende","owner":"FedericoBruzzone","description":"A rust library for encoding/decoding unicode/utf-8/utf-16(ucs-2) code points. 🦀","archived":false,"fork":false,"pushed_at":"2024-08-12T16:09:23.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-09T09:14:10.168Z","etag":null,"topics":["codepoints","rust","rust-lang","rust-library","ucs2","unicode","utf-16","utf-8"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FedericoBruzzone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-07T13:16:59.000Z","updated_at":"2024-08-12T16:09:27.000Z","dependencies_parsed_at":"2023-12-16T16:24:20.667Z","dependency_job_id":"83b07021-f2a9-49d8-91f8-ba00ae798c9d","html_url":"https://github.com/FedericoBruzzone/ende","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.038461538461538436","last_synced_commit":"144e178da36d51c5da5ae0ec0a5a8fb6e16c6d0c"},"previous_names":["federicobruzzone/encdec","federicobruzzone/ende"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoBruzzone%2Fende","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoBruzzone%2Fende/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoBruzzone%2Fende/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoBruzzone%2Fende/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FedericoBruzzone","download_url":"https://codeload.github.com/FedericoBruzzone/ende/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232400144,"owners_count":18517350,"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":["codepoints","rust","rust-lang","rust-library","ucs2","unicode","utf-16","utf-8"],"created_at":"2024-11-09T09:14:08.643Z","updated_at":"2026-01-26T23:19:39.731Z","avatar_url":"https://github.com/FedericoBruzzone.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[github-ci-linux]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-linux.yml\n[github-ci-linux-shield]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-linux.yml/badge.svg\n[github-ci-windows]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-windows.yml\n[github-ci-windows-shield]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-windows.yml/badge.svg\n[github-ci-macos]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-macos.yml\n[github-ci-macos-shield]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-macos.yml/badge.svg\n[crates-io]: https://crates.io/crates/ende\n[crates-io-shield]: https://img.shields.io/crates/v/ende\n[github-license]: https://github.com/FedericoBruzzone/ende/blob/main/LICENSE\n[github-license-shield]: https://img.shields.io/github/license/FedericoBruzzone/ende\n[total-lines]: https://github.com/FedericoBruzzone/ende\n[total-lines-shield]: https://tokei.rs/b1/github/FedericoBruzzone/ende?type=Rust,Python\n[creates-io-downloads]: https://crates.io/crates/ende\n[creates-io-downloads-shield]: https://img.shields.io/crates/d/ende.svg\n[dependents]: https://crates.io/crates/ende/reverse_dependencies\n[dependents-shield]: https://img.shields.io/librariesio/dependents/cargo/ende\n[documentation]: https://docs.rs/ende\n[documentation-shield]: https://docs.rs/ende/badge.svg\n\n[![GitHub CI Linux][github-ci-linux-shield]][github-ci-linux]\n[![GitHub CI Windows][github-ci-windows-shield]][github-ci-windows]\n[![GitHub CI macOS][github-ci-macos-shield]][github-ci-macos]\n[![Crates.io][crates-io-shield]][crates-io]\n[![GitHub License][github-license-shield]][github-license]\n[![Crates.io Downloads][creates-io-downloads-shield]][creates-io-downloads]\n[![][total-lines-shield]][total-lines]\n[![dependents][dependents-shield]][dependents]\n[![Documentation][documentation-shield]][documentation]\n\n# Encdec\n\nA library for encoding/decoding unicode/utf-8/utf-16(ucs-2) code points.\n\n## Examples\n\n**Encoding/decoding unicode/UTF-8 code points**\n\n```rust\nlet v: Vec\u003cu32\u003e = vec![0x10348 /*...*/]; // Array of unicode code points\nlet utf8_vec: Vec\u003cu8\u003e = utf8::encode_in_utf8(\u0026v);\nutf8::print_utf8_b(\u0026utf8_vec);\nlet unicode_vec: Vec\u003cu32\u003e = utf8::decode_from_utf8(\u0026utf8_vec);\nunicode::print_unicode_b(\u0026v);\n```\n\n```shell\n--------------- UTF-8 of \"𐍈\" ---------------\nHex: [f0, 90, 8d, 88]\nBin: [\"11110000\", \"10010000\", \"10001101\", \"10001000\"]\nDec: [240, 144, 141, 136]\n--------------------------------------------\n\n--------------- UNICODE of \"𐍈\" ---------------\nHex: [10348]\nBin: [\"10000001101001000\"]\nDec: [66376]\n----------------------------------------------\n```\n\n**Encoding/decoding unicode/UTF-16 code points**\n\n```rust\nlet v: Vec\u003cu32\u003e = vec![0x10001 /*...*/]; // Array of unicode code points\nlet utf16_vec: Vec\u003cu16\u003e = utf16::encode_in_utf16(\u0026v);\nutf16::print_utf16_b(\u0026utf16_vec);\nlet unicode_vec: Vec\u003cu32\u003e = utf16::decode_from_utf16(\u0026utf16_vec);\nunicode::print_unicode_b(\u0026v);\n```\n\n```shell\n--------------- UTF-16 of \"𐀁\" ---------------\nHex: [d800, dc01]\nBin: [\"1101100000000000\", \"1101110000000001\"]\nDec: [55296, 56321]\n---------------------------------------------\n\n--------------- UNICODE of \"𐀁\" ---------------\nHex: [10001]\nBin: [\"10000000000000001\"]\nDec: [65537]\n----------------------------------------------\n```\n\n## Contributing\n\nContributions to this project are welcome! If you have any suggestions, improvements, or bug fixes, feel free to submit a pull request.\n\n## License\n\nThis repository is licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). Please review the license file provided in the repository for more information regarding the terms and conditions of the license.\n\n## Contact\n\nIf you have any questions, suggestions, or feedback, do not hesitate to [contact me](https://federicobruzzone.github.io/).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericobruzzone%2Fende","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedericobruzzone%2Fende","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericobruzzone%2Fende/lists"}