{"id":43102721,"url":"https://github.com/arapelle/arba-strn","last_synced_at":"2026-01-31T17:42:30.711Z","repository":{"id":116276507,"uuid":"225194234","full_name":"arapelle/arba-strn","owner":"arapelle","description":"A C++ library providing short trivially comparable string classes whose hash are trivially computable.","archived":false,"fork":false,"pushed_at":"2025-05-01T10:05:49.000Z","size":176,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-01T10:30:19.636Z","etag":null,"topics":["cmake","cpp","cpp20","cpp20-library","hash","library","string"],"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/arapelle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2019-12-01T16:41:49.000Z","updated_at":"2025-05-01T10:05:42.000Z","dependencies_parsed_at":"2024-12-22T19:20:07.191Z","dependency_job_id":"75873e9a-7389-4dc1-84ec-bd0f2c90e369","html_url":"https://github.com/arapelle/arba-strn","commit_stats":null,"previous_names":["arapelle/arba-strn"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/arapelle/arba-strn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arapelle%2Farba-strn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arapelle%2Farba-strn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arapelle%2Farba-strn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arapelle%2Farba-strn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arapelle","download_url":"https://codeload.github.com/arapelle/arba-strn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arapelle%2Farba-strn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28948612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cmake","cpp","cpp20","cpp20-library","hash","library","string"],"created_at":"2026-01-31T17:42:30.175Z","updated_at":"2026-01-31T17:42:30.704Z","avatar_url":"https://github.com/arapelle.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Concept #\n\nThe purpose is to provide short string classes (8 bytes max) whose hashs are trivially computable\n(no loop operation), and comparison operations are trivial too (no loop operation again).\n\n# Install #\n## Requirements ##\n\nBinaries:\n- A C++20 compiler (ex: g++-14)\n- CMake 3.26 or later\n\nTesting Libraries (optional):\n- [Google Test](https://github.com/google/googletest) 1.14 or later (optional)\n\n## Clone\n\n```\ngit clone https://github.com/arapelle/arba-strn --recurse-submodules\n```\n\n## Use with `conan`\n\nCreate the conan package.\n```\nconan create . --build=missing -c\n```\nAdd a requirement in your conanfile project file.\n```python\n    def requirements(self):\n        self.requires(\"arba-strn/0.6.0\")\n```\n\n## Quick Install ##\nThere is a cmake script at the root of the project which builds the library in *Release* mode and install it (default options are used).\n```\ncd /path/to/arba-strn\ncmake -P cmake/scripts/quick_install.cmake\n```\nUse the following to quickly install a different mode.\n```\ncmake -P cmake/scripts/quick_install.cmake -- TESTS BUILD Debug DIR /tmp/local\n```\n\n## Uninstall ##\nThere is a uninstall cmake script created during installation. You can use it to uninstall properly this library.\n```\ncd /path/to/installed-arba-strn/\ncmake -P uninstall.cmake\n```\n\n# How to use\n## Example - \"Hi world\"\n```c++\n#include \u003carba/strn/string64.hpp\u003e\n#include \u003carba/strn/io.hpp\u003e\n#include \u003ciostream\u003e\n\nint main()\n{\n    strn::string64 str(\"Hi world\");\n    std::cout \u003c\u003c str \u003c\u003c std::endl;\n    return EXIT_SUCCESS;\n}\n```\n\n## Example - As a map key\n```c++\n#include \u003carba/strn/string64.hpp\u003e\n#include \u003carba/strn/io.hpp\u003e\n#include \u003cunordered_map\u003e\n#include \u003ciostream\u003e\n\nint main()\n{\n    std::unordered_map\u003cstrn::string64, std::string\u003e dict;\n    dict[\"id1\"] = \"A long string\";\n    dict[\"id2\"] = \"Another long string\";\n    dict[\"12345678\"] = \"'12345678' length is string64 max length.\";\n//    dict[\"123456789\"] = \"It cannot compile as only 8-length or shorter C-string are accepted.\";\n    std::cout \u003c\u003c dict[\"id1\"] \u003c\u003c std::endl \u003c\u003c std::endl;\n    for (const auto\u0026 entry : dict)\n        std::cout \u003c\u003c entry.first \u003c\u003c \": \" \u003c\u003c entry.second \u003c\u003c std::endl;\n    return EXIT_SUCCESS;\n}\n\n# License\n\n[MIT License](./LICENSE.md) © arba-strn\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farapelle%2Farba-strn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farapelle%2Farba-strn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farapelle%2Farba-strn/lists"}