{"id":16165062,"url":"https://github.com/chrberger/stringtoolbox","last_synced_at":"2025-08-03T21:33:47.003Z","repository":{"id":150058792,"uuid":"122442662","full_name":"chrberger/stringtoolbox","owner":"chrberger","description":"A simple header-only, single-file string toolbox library for C++.","archived":false,"fork":false,"pushed_at":"2023-01-15T20:43:26.000Z","size":176,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T20:04:29.642Z","etag":null,"topics":["cpp11","cpp14","cpp17","header-only","platform-independent","single-file","string","strings","stringtools"],"latest_commit_sha":null,"homepage":null,"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/chrberger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2018-02-22T07:03:30.000Z","updated_at":"2023-12-03T07:34:21.000Z","dependencies_parsed_at":"2023-07-25T04:15:41.732Z","dependency_job_id":null,"html_url":"https://github.com/chrberger/stringtoolbox","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/chrberger/stringtoolbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrberger%2Fstringtoolbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrberger%2Fstringtoolbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrberger%2Fstringtoolbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrberger%2Fstringtoolbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrberger","download_url":"https://codeload.github.com/chrberger/stringtoolbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrberger%2Fstringtoolbox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268617308,"owners_count":24279230,"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-08-03T02:00:12.545Z","response_time":2577,"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":["cpp11","cpp14","cpp17","header-only","platform-independent","single-file","string","strings","stringtools"],"created_at":"2024-10-10T02:49:08.917Z","updated_at":"2025-08-03T21:33:46.911Z","avatar_url":"https://github.com/chrberger.png","language":"C++","readme":"## stringtoolbox - a simple header-only, single-file string toolbox library for C++\n\n[![Build Status](https://travis-ci.org/chrberger/stringtoolbox.svg?branch=master)](https://travis-ci.org/chrberger/stringtoolbox) [![Build status](https://ci.appveyor.com/api/projects/status/i3swddat4tlnxmm5?svg=true)](https://ci.appveyor.com/project/chrberger/stringtoolbox) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nstringtoolbox is a small and efficient library written in modern C++ library to provide some features for processing `std::strings`.\n\nstringtoolbox is available as single-file, header-only library - just drop [stringtoolbox.hpp](https://raw.githubusercontent.com/chrberger/stringtoolbox/master/stringtoolbox.hpp) into your project, `#include \"stringtoolbox.hpp\"`, and compile your project with a modern C++ compiler (C++11 or newer).\n\n\n## Table of Contents\n* [Features](#features)\n* [Dependencies](#dependencies)\n* [Contributing](#contributing)\n* [License](#license)\n\n\n## Features\n* Written in highly portable and high quality C++11\n* **Available as header-only, single-file distribution - just drop [stringtoolbox.hpp](https://raw.githubusercontent.com/chrberger/stringtoolbox/master/stringtoolbox.hpp) into your project, `#include \"stringtoolbox.hpp\"`, and compile your project with a modern C++ compiler (C++11 or newer)**\n* Remove leading whitespace characters: `std::string retVal = stringtoolbox::ltrim(\"   Hello World!\");`\n* Remove trailing whitespace characters: `std::string retVal = stringtoolbox::rtrim(\"Hello World!    \");`\n* Remove leading and trailing whitespace characters: `std::string retVal = stringtoolbox::trim(\"   Hello World!    \");`\n* Replace all occurrences of given character: `std::string retVal = stringtoolbox::replaceAll(\"Hello World.\", '.', '!');`\n* Split a string using the given delimiter: `std::vector\u003cstd::string\u003e retVal = stringtoolbox::split(\"Hello,World\", ',');`\n\n\n## Dependencies\nNo dependencies! All you need is a C++11-compliant compiler (we are testing with GCC 4.8.4 and MSVC 19.0.24215.1) as the project ships the following dependencies as part of the source distribution:\n\n* [Unit Test Framework Catch2](https://github.com/catchorg/Catch2/releases/tag/v2.1.1) - [![License: Boost Software License v1.0](https://img.shields.io/badge/License-Boost%20v1-blue.svg)](http://www.boost.org/LICENSE_1_0.txt) - [Source](https://github.com/chrberger/stringtoolbox/blob/master/test/catch.hpp)\n\n\n## Installation\n### Installation as single-file, header-only library\nstringtoolbox is provided as header-only, single-file library as well - just drop [stringtoolbox.hpp](https://raw.githubusercontent.com/chrberger/stringtoolbox/master/stringtoolbox.hpp) into your project, `#include \"stringtoolbox.hpp\"`, and compile your project with a modern C++ compiler (C++11 or newer)\n\n\n## Projects using stringtoolbox\nIf your project is using stringtoolbox, just let us know :-)\n* [libcluon](https://github.com/chrberger/libcluon)\n\n\n## Contributing\nWe are happy to receive your PRs to accelerate libcluon's development; before contributing, please take a look at the [Contribution Documents](CONTRIBUTING.md).\n\n\n## License\n* This project is released under the terms of the MIT License - [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrberger%2Fstringtoolbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrberger%2Fstringtoolbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrberger%2Fstringtoolbox/lists"}