{"id":48469584,"url":"https://github.com/grqphical/better-string","last_synced_at":"2026-04-07T06:02:15.495Z","repository":{"id":346038845,"uuid":"1188159127","full_name":"grqphical/better-string","owner":"grqphical","description":"A single-header C99 library that provides a better string implementation","archived":false,"fork":false,"pushed_at":"2026-03-21T23:45:01.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-22T12:45:27.898Z","etag":null,"topics":["c","c99","library","single-header-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/grqphical.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-21T17:39:16.000Z","updated_at":"2026-03-21T23:45:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/grqphical/better-string","commit_stats":null,"previous_names":["grqphical/better-string"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/grqphical/better-string","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grqphical%2Fbetter-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grqphical%2Fbetter-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grqphical%2Fbetter-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grqphical%2Fbetter-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grqphical","download_url":"https://codeload.github.com/grqphical/better-string/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grqphical%2Fbetter-string/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31501903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["c","c99","library","single-header-library","string"],"created_at":"2026-04-07T06:02:14.417Z","updated_at":"2026-04-07T06:02:15.487Z","avatar_url":"https://github.com/grqphical.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Better String\n[![Tests](https://github.com/grqphical/better-string/actions/workflows/tests.yml/badge.svg)](https://github.com/grqphical/better-string/actions/workflows/tests.yml)\n\nA single header C99 library that creates a better implementation of strings.\n\n## Usage\nClone `better_string.h` into your project and include it like so:\n```c\n#define BETTER_STRING_IMPLEMENTATION\n#include \"better_string.h\"\n```\n\nTo convert C style strings to better_strings, use the `bs()` macro:\n```c\nbs_string str = bs(\"Hello, World!\");\n```\n\nTo convert a better string back to a C style string, use the `cstr()` macro:\n```c\nconst char* c_str = cstr(str);\n```\n\nThe header also provides utility functions to make working with these strings easier, you can read more about these in the project's wiki or in the documentation in the\nheader file itself.\n\n## Features/Roadmap\n- [x] Converstion to and from C style strings\n- [x] `strlen()` equivalent\n- [x] Concatenating strings together\n- [x] Getting individual characters from better strings\n- [x] Getting the index/pointer to a certain character in a string\n- [x] String slicing\n- [x] Find and replace substrings\n- [x] String comparison\n- [x] Substring Deletion\n- [ ] Splitting by delimiter\n- [ ] Finding all instances of substrings\n- [ ] `malloc()`-less version\n\n## License\nBetter String is licensed under the [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrqphical%2Fbetter-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrqphical%2Fbetter-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrqphical%2Fbetter-string/lists"}