{"id":16001288,"url":"https://github.com/rj/estr-erlang-elixir-binary-string","last_synced_at":"2026-05-05T03:35:14.530Z","repository":{"id":27647319,"uuid":"31132288","full_name":"RJ/estr-erlang-elixir-binary-string","owner":"RJ","description":"Adaptor for using Elixir's UTF8 binary string module in Erlang","archived":false,"fork":false,"pushed_at":"2017-02-08T14:43:56.000Z","size":450,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T11:08:22.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Erlang","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/RJ.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}},"created_at":"2015-02-21T16:48:26.000Z","updated_at":"2024-05-04T21:56:06.000Z","dependencies_parsed_at":"2022-09-02T18:11:32.326Z","dependency_job_id":null,"html_url":"https://github.com/RJ/estr-erlang-elixir-binary-string","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/RJ%2Festr-erlang-elixir-binary-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RJ%2Festr-erlang-elixir-binary-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RJ%2Festr-erlang-elixir-binary-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RJ%2Festr-erlang-elixir-binary-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RJ","download_url":"https://codeload.github.com/RJ/estr-erlang-elixir-binary-string/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244999230,"owners_count":20544866,"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-08T09:41:30.360Z","updated_at":"2026-05-05T03:35:14.491Z","avatar_url":"https://github.com/RJ.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Use Elixir.String from Erlang\n\n`estr` is an Erlang adaptor for Elixir.String, \n\nElixir strings are UTF-8 encoded binaries.\nRead the [docs for Elixir.String](https://hexdocs.pm/elixir/String.html) to know more.\n\n`estr` bundles a few select `.beam` files from Elixir, and provides a more\nErlangy API.\nThese Elixir beam files were taken from an Elixir 1.4.0 build on 64-bit Ubuntu Linux,\ncirca Feb. 2017.\n\nI have only tested this with Erlang 19.2. It probably works with earlier versions.\n\n## Usage\n\nYou can include this as you would any dep, and have utf8 binary strings in your erlang.\n\nThe `estr` application has no processes or supervisors.\n\n    $ rebar3 shell\n\n    1\u003e estr:new(\"Hello\").\n    \u003c\u003c\"Hello\"\u003e\u003e\n    2\u003e estr:new(\u003c\u003c\"Hello\"\u003e\u003e).\n    \u003c\u003c\"Hello\"\u003e\u003e\n    3\u003e estr:next_codepoint(estr:new(\"жen\")).\n    {\u003c\u003c208,182\u003e\u003e,\u003c\u003c\"en\"\u003e\u003e}\n    4\u003e S = estr:new(\"Джубадзе\").\n    \u003c\u003c208,148,208,182,209,131,208,177,208,176,208,180,208,183,208,181\u003e\u003e\n    5\u003e estr:length(S).\n    8\n    6\u003e size(S).\n    16\n    7\u003e io:format(estr:to_char_list(estr:upcase(S))).\n    ДЖУБАДЗЕ\n\n\n## Smoke Test\n\nTo check `estr` can call Elixir.String without crashing:\n\n    rebar3 eunit\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frj%2Festr-erlang-elixir-binary-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frj%2Festr-erlang-elixir-binary-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frj%2Festr-erlang-elixir-binary-string/lists"}