{"id":19094890,"url":"https://github.com/zahash/utf8.c","last_synced_at":"2025-04-30T14:06:20.834Z","repository":{"id":228169147,"uuid":"773322954","full_name":"zahash/utf8.c","owner":"zahash","description":"UTF-8 library for c","archived":false,"fork":false,"pushed_at":"2024-09-10T11:12:09.000Z","size":50,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T03:34:20.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zahash.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":"2024-03-17T11:06:00.000Z","updated_at":"2025-03-29T15:36:04.000Z","dependencies_parsed_at":"2024-03-17T12:26:30.875Z","dependency_job_id":"159ba152-11d5-40ed-a910-941a16d46f0f","html_url":"https://github.com/zahash/utf8.c","commit_stats":null,"previous_names":["zahash/utf8.c"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahash%2Futf8.c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahash%2Futf8.c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahash%2Futf8.c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahash%2Futf8.c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zahash","download_url":"https://codeload.github.com/zahash/utf8.c/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251716781,"owners_count":21632183,"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-11-09T03:31:58.482Z","updated_at":"2025-04-30T14:06:20.766Z","avatar_url":"https://github.com/zahash.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cpre\u003e\n██╗   ██╗████████╗███████╗ █████╗     ██████╗\n██║   ██║╚══██╔══╝██╔════╝██╔══██╗   ██╔════╝\n██║   ██║   ██║   █████╗  ╚█████╔╝   ██║     \n██║   ██║   ██║   ██╔══╝  ██╔══██╗   ██║     \n╚██████╔╝   ██║   ██║     ╚█████╔╝██╗╚██████╗\n ╚═════╝    ╚═╝   ╚═╝      ╚════╝ ╚═╝ ╚═════╝\n---------------------------------------------\nsimple C library for working with UTF-8 encoded strings\n\u003c/pre\u003e\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\u003c/div\u003e\n\n## 🧑‍💻 Usage example\n\n```c\n#include \"utf8.h\"\n#include \u003cstdio.h\u003e\n\nint main() {\n    const char* str = \"Hello, こんにちは, Здравствуйте\";\n    utf8_string ustr = make_utf8_string(str);\n    utf8_string_slice slice = make_utf8_string_slice(ustr, 2, 11);\n    utf8_char_iter iter = make_utf8_char_iter(ustr);\n\n    printf(\"string: %s\\n\", ustr.str);\n    printf(\"slice: %.*s\\n\", (int)slice.byte_len, slice.str);\n\n    utf8_char ch;\n    while ((ch = next_utf8_char(\u0026iter)).byte_len \u003e 0) {\n        printf(\"character: %.*s\\t\", (int)ch.byte_len, ch.str);\n        printf(\"unicode code point: U+%04X\\n\", unicode_code_point(ch));\n    }\n\n    return 0;\n}\n```\n\n## 🌟 Connect with Us\n\nM. Zahash – zahash.z@gmail.com\n\nDistributed under the MIT license. See `LICENSE` for more information.\n\n[https://github.com/zahash/](https://github.com/zahash/)\n\n## 🤝 Contribute to utf8.c!\n\n1. Fork it (\u003chttps://github.com/zahash/utf8.c/fork\u003e)\n2. Create your feature branch (`git checkout -b feature/fooBar`)\n3. Commit your changes (`git commit -am 'Add some fooBar'`)\n4. Push to the branch (`git push origin feature/fooBar`)\n5. Create a new Pull Request\n\n## ❤️ Show Some Love!\n\nIf you find this helpful and enjoy using it, consider giving it a [⭐ on GitHub!](https://github.com/zahash/utf8.c/stargazers) Your star is a gesture of appreciation and encouragement for the continuous improvement of this library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzahash%2Futf8.c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzahash%2Futf8.c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzahash%2Futf8.c/lists"}