{"id":19445558,"url":"https://github.com/s5bug/utf8string","last_synced_at":"2025-02-25T08:28:44.946Z","repository":{"id":82075988,"uuid":"447746107","full_name":"s5bug/utf8string","owner":"s5bug","description":"UTF-8 and Codepoint Strings for Scala","archived":false,"fork":false,"pushed_at":"2022-01-14T02:35:01.000Z","size":9,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T22:51:16.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/s5bug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-01-13T20:41:53.000Z","updated_at":"2022-01-13T20:42:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"bfdc9bc9-0531-4d90-a637-911afb189de5","html_url":"https://github.com/s5bug/utf8string","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s5bug%2Futf8string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s5bug%2Futf8string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s5bug%2Futf8string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s5bug%2Futf8string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s5bug","download_url":"https://codeload.github.com/s5bug/utf8string/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240630461,"owners_count":19832069,"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-10T16:11:05.696Z","updated_at":"2025-02-25T08:28:44.485Z","avatar_url":"https://github.com/s5bug.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# utf8string\n\nA project that provides `Utf8String` and `CodepointString` for ScalaJVM and\nScalaJS.\n\n## example usage\n\n```scala\nimport tf.bug.utf8string._\n\nval u8s = Utf8String(\"Hello! ヤッホー！ 🎶\")\nprintln(u8s) // =\u003e Hello! ヤッホー！ 🎶\nprintln(u8s.byteAt(15)) // =\u003e -100 (= 0x9b)\nval cps = u8s.toCodepointString\nprintln(cps) // =\u003e Hello! ヤッホー！ 🎶\nprintln(cps.codepointAt(9)) // =\u003e 12507 (= 0x30db)\nprintln(cps.codepointAt(cps.length - 1)) // =\u003e 127926 (= 0x1f3b6)\n```\n\n```scala\nimport fs2._\nimport tf.bug.utf8string.fs2.utf8text\n\nval bytes = List(0xF0.toByte, 0x9F.toByte, 0x8E.toByte, 0xB6.toByte)\nval toText = Stream.emits(bytes).through(utf8text.decodeUtf8)\ntoText.compile.toList // =\u003e List(🎶)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs5bug%2Futf8string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs5bug%2Futf8string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs5bug%2Futf8string/lists"}