{"id":23059431,"url":"https://github.com/miroox/type-safe-printf","last_synced_at":"2025-04-03T06:29:40.498Z","repository":{"id":136862359,"uuid":"83760704","full_name":"miRoox/type-safe-printf","owner":"miRoox","description":"a type safe printf in c++14","archived":false,"fork":false,"pushed_at":"2022-02-06T04:16:44.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T20:26:09.196Z","etag":null,"topics":["cpp14","printf","type-safe"],"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/miRoox.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-03T05:23:42.000Z","updated_at":"2024-05-11T03:12:08.000Z","dependencies_parsed_at":"2024-07-11T06:45:14.422Z","dependency_job_id":null,"html_url":"https://github.com/miRoox/type-safe-printf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miRoox%2Ftype-safe-printf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miRoox%2Ftype-safe-printf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miRoox%2Ftype-safe-printf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miRoox%2Ftype-safe-printf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miRoox","download_url":"https://codeload.github.com/miRoox/type-safe-printf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246947305,"owners_count":20859268,"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":["cpp14","printf","type-safe"],"created_at":"2024-12-16T02:26:20.195Z","updated_at":"2025-04-03T06:29:40.490Z","avatar_url":"https://github.com/miRoox.png","language":"C++","readme":"# 一个类型安全的printf\n\n目前只支持诸如`\"%d\"`,`\"%s\"`这样的基本格式\n\n```cpp\n    int a = 4;\n    tsprintf(\"a=%d in %s\\n\",a); //build failed, missing argument\n    tsprintf(\"a=%d in %s\\n\",__FILE__,a); //build failed, mismatch type\n    tsprintf(\"a=%d in %s\\n\",a++,__FILE__); //ok, and 'a' will be 5 \n    tsprintf(\"abc%%\\n\"); //ok\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiroox%2Ftype-safe-printf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiroox%2Ftype-safe-printf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiroox%2Ftype-safe-printf/lists"}