{"id":15497211,"url":"https://github.com/jwerle/uri.c","last_synced_at":"2025-07-16T12:05:42.120Z","repository":{"id":17578464,"uuid":"20381931","full_name":"jwerle/uri.c","owner":"jwerle","description":"URI Component encoder/decoder","archived":false,"fork":false,"pushed_at":"2015-02-28T16:16:39.000Z","size":203,"stargazers_count":24,"open_issues_count":0,"forks_count":2,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-22T22:34:57.021Z","etag":null,"topics":[],"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/jwerle.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","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":"2014-06-01T17:12:09.000Z","updated_at":"2023-07-25T07:20:18.000Z","dependencies_parsed_at":"2022-09-24T17:22:10.950Z","dependency_job_id":null,"html_url":"https://github.com/jwerle/uri.c","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jwerle/uri.c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Furi.c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Furi.c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Furi.c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Furi.c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwerle","download_url":"https://codeload.github.com/jwerle/uri.c/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Furi.c/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265508237,"owners_count":23779102,"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":[],"created_at":"2024-10-02T08:31:54.951Z","updated_at":"2025-07-16T12:05:41.803Z","avatar_url":"https://github.com/jwerle.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"uri.c\n=====\n\nURI Component encoder/decoder\n\n## install\n\n```sh\n$ clib install littlstar/uri.c\n```\n\n## usage\n\n```c\n#include \u003curi/uri.h\n```\n\nor\n\n```c\n#include \u003curi.h\u003e\n```\n\n```c\n\n#include \u003cstdio.h\u003e\n#include \u003cstring.h\u003e\n#include \"uri.h\"\n\nint\nmain (void) {\n  char *enc = NULL;\n  char *dec = NULL;\n\n  enc = uri_encode(\"Betty's favorite language is Français\");\n  printf(\"%s\\n\", enc); // Betty%27s%20favorite%20language%20is%20Fran%C3%A7ais\n\n  dec = uri_decode(enc);\n  printf(\"%s\\n\", dec); // Betty's favorite language is Français\n  return 0;\n}\n```\n\n## api\n\nEncodes a URI component by replacing each\ninstance of certain characters by one, two, three, or four escape\nsequences representing the UTF-8 encoding of the character\n\n```c\nchar *\nuri_encode (const char *);\n```\n\nDecodes a URI component source from `uri_encode`\n\n```c\nchar *\nuri_decode (const char *);\n```\n\n## license\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Furi.c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwerle%2Furi.c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Furi.c/lists"}