{"id":20229092,"url":"https://github.com/dacap/tok","last_synced_at":"2025-10-13T20:38:50.788Z","repository":{"id":66589550,"uuid":"280036322","full_name":"dacap/tok","owner":"dacap","description":"A minimalist C++ library to iterate through string tokens","archived":false,"fork":false,"pushed_at":"2024-04-16T22:23:42.000Z","size":7,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T12:55:43.796Z","etag":null,"topics":["cpp","cpp-library","cpp11","header-only"],"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/dacap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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":"2020-07-16T02:51:35.000Z","updated_at":"2025-03-08T18:07:54.000Z","dependencies_parsed_at":"2024-04-16T23:40:55.882Z","dependency_job_id":null,"html_url":"https://github.com/dacap/tok","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dacap/tok","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Ftok","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Ftok/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Ftok/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Ftok/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dacap","download_url":"https://codeload.github.com/dacap/tok/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Ftok/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016930,"owners_count":26085910,"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-10-13T02:00:06.723Z","response_time":61,"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":["cpp","cpp-library","cpp11","header-only"],"created_at":"2024-11-14T07:34:15.593Z","updated_at":"2025-10-13T20:38:50.771Z","avatar_url":"https://github.com/dacap.png","language":"C++","readme":"# tok\n\nA minimalist C++ library to iterate through string tokens:\n\n```c++\n#include \u003ciostream\u003e\n#include \u003cstring\u003e\n#include \"tok.h\"\n\nint main() {\n  // Prints:\n  // \"This\"\n  // \"is\"\n  // \"a\"\n  // \"phrase.\"\n  // \"Several\"\n  // \"whitespaces\"\n  // \"are\"\n  // \"ignored.\"\n  std::string a = \"This is a phrase.   Several whitespaces are ignored.\";\n  for (auto\u0026 tok : tok::split_tokens(a, ' ')) {\n    std::cout \u003c\u003c \"\\\"\" \u003c\u003c tok \u003c\u003c \"\\\"\\n\";\n  }\n\n  // Prints:\n  // \"In comma\"\n  // \"separated\"\n  // \"\"\n  // \"values\"\n  // \"\"\n  // \"\"\n  // \"empties are included\"\n  std::string b = \"In comma,separated,,values,,,empties are included\";\n  for (auto\u0026 tok : tok::csv(b)) {\n    std::cout \u003c\u003c \"\\\"\" \u003c\u003c tok \u003c\u003c \"\\\"\\n\";\n  }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacap%2Ftok","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdacap%2Ftok","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacap%2Ftok/lists"}