{"id":20265235,"url":"https://github.com/guitarbum722/libqualified","last_synced_at":"2026-05-10T13:04:02.711Z","repository":{"id":81489683,"uuid":"168902143","full_name":"Guitarbum722/libqualified","owner":"Guitarbum722","description":"Like strsep, but considers quoted tokens in delimited data.","archived":false,"fork":false,"pushed_at":"2021-02-07T16:51:02.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-14T05:10:04.753Z","etag":null,"topics":["c","csv","delimited-data","delimited-files","quotes","text-processing"],"latest_commit_sha":null,"homepage":"","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/Guitarbum722.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}},"created_at":"2019-02-03T02:40:38.000Z","updated_at":"2021-02-07T16:51:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea33538a-5f59-4081-b258-5cb705ec807c","html_url":"https://github.com/Guitarbum722/libqualified","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guitarbum722%2Flibqualified","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guitarbum722%2Flibqualified/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guitarbum722%2Flibqualified/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guitarbum722%2Flibqualified/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Guitarbum722","download_url":"https://codeload.github.com/Guitarbum722/libqualified/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241739431,"owners_count":20012103,"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","csv","delimited-data","delimited-files","quotes","text-processing"],"created_at":"2024-11-14T11:46:24.011Z","updated_at":"2026-05-10T13:04:02.647Z","avatar_url":"https://github.com/Guitarbum722.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libqualified\n\nIt's basically `strsep` from `\u003cstring.h\u003e`, but allows for quoted fields.\n\nThis is useful if the input's delimiter characters is actually part of the data in one or more of the tokens (eg. a comma delimited field in a CSV such as \"Moby, M.D.\").\n\n### Sample usage\n\n```c\n#include \u003cstdio.h\u003e\n\n#include \"qual.h\"\n\nint \nmain()\n{\n    char *field, *input, *tofree;\n\n    tofree = input = strdup(\"Don|K|\\\"Moby, M.D.\\\"|don.moby@nothing.com\");\n\n    while ((field = strqsep(\u0026input, \"|\", \"\\\"\")) != NULL) {\n        printf(\"%s\\n\", field);\n    }\n    free(tofree);\n    return 0;\n}\n\n```\n\nOutput:\n```\nDon\nK\n\"Moby, M.D.\"\ndon.moby@nothing.com\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguitarbum722%2Flibqualified","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguitarbum722%2Flibqualified","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguitarbum722%2Flibqualified/lists"}