{"id":26028672,"url":"https://github.com/tyler-cromwell/strutil","last_synced_at":"2026-06-05T10:31:41.962Z","repository":{"id":10763694,"uuid":"13026912","full_name":"tyler-cromwell/Strutil","owner":"tyler-cromwell","description":"A simple string library to alleviate annoying string manipulation problems in C","archived":false,"fork":false,"pushed_at":"2018-08-20T14:04:56.000Z","size":371,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-16T00:19:04.799Z","etag":null,"topics":["c","library","string-manipulation"],"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/tyler-cromwell.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}},"created_at":"2013-09-23T04:29:07.000Z","updated_at":"2023-03-05T04:57:21.000Z","dependencies_parsed_at":"2022-08-30T11:11:29.889Z","dependency_job_id":null,"html_url":"https://github.com/tyler-cromwell/Strutil","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyler-cromwell%2FStrutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyler-cromwell%2FStrutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyler-cromwell%2FStrutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyler-cromwell%2FStrutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyler-cromwell","download_url":"https://codeload.github.com/tyler-cromwell/Strutil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242250930,"owners_count":20096898,"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":["c","library","string-manipulation"],"created_at":"2025-03-06T17:19:18.858Z","updated_at":"2025-03-06T17:19:19.514Z","avatar_url":"https://github.com/tyler-cromwell.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is Strutil?\nStrutil is a simple string library that I've been using to supplement the string functions in the [C Standard Library][C Standard Library].\n\n## Functions\n- `contains`: Tests if a sequence is contained in a string.\n- `ends_with`: Tests if a string ends with a given token.\n- `index_of`: Gets the FIRST index of a character within a string.\n- `indices_of`: Gets ALL indexes of a character withing a string\n- `insert`: Inserts a string at the specified index.\n- `lcs`: Computes the [Longest Common Subsequence][lcs] of a pair of strings.\n- `lowercase`: Sets all letters to lowercase.\n- `remove`: Removes characters from a string in the given range.\n- `remove_each`: Removes all given characters from a string.\n- `replace_all`: Replaces each occurence of a character with a new character in a string.\n- `reverse`: Reverses the contents of a string.\n- `split`: Splits a string at each occurence of a token. Returns an array of Strings.\n- `starts_with`: Tests if a string starts with a given token.\n- `substring`: Gets a substring within a given range.\n- `trim`: Trims the leading and trailing spaces in a string.\n- `uppercase`: Sets all letters to uppercase.\n\n## Usage\nTo use Strutil...\u003cbr\u003e\n1. Insert `#include \u003cstrutil/strutil.h\u003e` into your source file(s).\u003cbr\u003e\n2. Compile with the `-lstrutil` flag.\u003cbr\u003e\n\n## Dependencies\n- glibc (2.16 or later) ([GNU C Library][Glibc])\n- gcc ([GNU Compiler Collection][GCC]) OR clang ([Clang][Clang]/[LLVM][LLVM])\n\n## How to Install\n```\n$ make\n$ sudo make install\n```\n\n## How to Uninstall\n```\n$ sudo make uninstall\n```\n\n## Tests\n1. Build debug library (`make debug`) from the project root directory.\n2. Clean all executables in the test directory because the static library is used (`make clean`).\n3. Build all or which ever test you want (`make` or `make \u003csomething\u003e`).\n\n## Contributing\nSubmit a pull request! Upon submission I will review any and all changes.\n\n## Bugs\nAll bugs and other issues should be reported on the github issue tracker.\n\n\n[C Standard Library]: http://en.wikipedia.org/wiki/C_standard_library\n[Glibc]: http://en.wikipedia.org/wiki/GNU_C_Library\n[GCC]: http://en.wikipedia.org/wiki/GNU_Compiler_Collection\n[Clang]: http://en.wikipedia.org/wiki/Clang\n[LLVM]: http://en.wikipedia.org/wiki/LLVM\n[Gmake]: http://www.gnu.org/software/make/\n\n[lcs]: https://en.wikipedia.org/wiki/Longest_common_subsequence_problem\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyler-cromwell%2Fstrutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyler-cromwell%2Fstrutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyler-cromwell%2Fstrutil/lists"}