{"id":26368774,"url":"https://github.com/bindreams/cxstring","last_synced_at":"2025-09-06T22:35:36.742Z","repository":{"id":167685053,"uuid":"172386891","full_name":"bindreams/cxstring","owner":"bindreams","description":"Compile-time string class","archived":false,"fork":false,"pushed_at":"2025-03-07T15:14:19.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-11T15:39:23.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/bindreams.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,"zenodo":null}},"created_at":"2019-02-24T20:33:04.000Z","updated_at":"2025-03-07T15:14:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8cf34c9-cdf3-4dfb-ba0e-2f8c44eec4f7","html_url":"https://github.com/bindreams/cxstring","commit_stats":null,"previous_names":["andreasxp/cxstring","bindreams/cxstring"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bindreams/cxstring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bindreams%2Fcxstring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bindreams%2Fcxstring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bindreams%2Fcxstring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bindreams%2Fcxstring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bindreams","download_url":"https://codeload.github.com/bindreams/cxstring/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bindreams%2Fcxstring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273973816,"owners_count":25200576,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-03-16T22:49:00.101Z","updated_at":"2025-09-06T22:35:36.709Z","avatar_url":"https://github.com/bindreams.png","language":"C++","readme":"# cxstring\nA string class for compile-time string manipulation.  \nInspired by this [blog post](https://akrzemi1.wordpress.com/2017/06/28/compile-time-string-concatenation/), this library expands on the idea by implementing all relevant string methods, modernizing the approach, and providing additional features such as compile-time number-to-string conversion.\n\n## Installation\n`cxstring` is a single-header library. There are no public releases available yet, but you can use the library in its \"unwrapped\" form by copying the cxstring folder into your project's directory, or manually build the single header from root-level cxstring.hpp.  \nUsing `cxstring` requires C++17 support.\n\n## Usage\nIncluding the library:\n```c++\n#include \"cxstring.hpp\"\n```\n\nCreating a `cxstring`:\n```c++\nzh::cxstring cxstr = \"Hello there!\"; // Deduced type: zh::cxstring\u003c12\u003e (12 symbols, \\0 does not count)\n```\n\nConcatenating string literals:\n```c++\nauto cxstr = \n\tzh::cxstring(\"General\") + \n\tzh::cxstring(\" \") +\n\tzh::cxstring(\"Kenobi!\");\n// Deduced type: zh::cxstring\u003c15\u003e\n```\n\nGetting a string literal out, to not scare your users with your crazy libraries:\n```c++\nconst auto\u0026 literal1 = cxstr.data(); // type: reference to const char array of the appropriate size\nconst auto\u0026 literal2 = cxstr.substr\u003c7\u003e(8).data();\n//                              size^  ^start\n```\n\n## License\nThis project is licenced under the MIT licence. It is free for personal and commercial use.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbindreams%2Fcxstring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbindreams%2Fcxstring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbindreams%2Fcxstring/lists"}