{"id":26910224,"url":"https://github.com/zhima-mochi/replace-multiple-words","last_synced_at":"2026-04-30T01:36:14.462Z","repository":{"id":111849454,"uuid":"384090422","full_name":"Zhima-Mochi/replace-multiple-words","owner":"Zhima-Mochi","description":"Given replace map, we can replace all the correspond words in input file without wrong twice replace.","archived":false,"fork":false,"pushed_at":"2022-01-22T13:40:52.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T05:59:18.017Z","etag":null,"topics":["cpp17","docker","trie-structure"],"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/Zhima-Mochi.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":"2021-07-08T10:43:12.000Z","updated_at":"2022-01-22T13:44:20.000Z","dependencies_parsed_at":"2023-03-13T13:33:18.909Z","dependency_job_id":null,"html_url":"https://github.com/Zhima-Mochi/replace-multiple-words","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Zhima-Mochi/replace-multiple-words","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhima-Mochi%2Freplace-multiple-words","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhima-Mochi%2Freplace-multiple-words/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhima-Mochi%2Freplace-multiple-words/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhima-Mochi%2Freplace-multiple-words/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zhima-Mochi","download_url":"https://codeload.github.com/Zhima-Mochi/replace-multiple-words/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhima-Mochi%2Freplace-multiple-words/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32451474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cpp17","docker","trie-structure"],"created_at":"2025-04-01T13:31:48.878Z","updated_at":"2026-04-30T01:36:14.456Z","avatar_url":"https://github.com/Zhima-Mochi.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# replace-multiple-words\nGiven replace map, we can replace all the correspond words in input file without wrong twice replace.\n\n## Example:\n### mapping.txt\n```\nKey:Value\n紅色:草莓口味\n草莓:小熊軟糖\n紅色辣椒:綠色青椒\n啊:[del]\n```\n\u003eCan use \":\" or \"：\".  \n\u003eKey and value should not be \"\".  \n\u003eUse [del] to replace key as \"\".\n\n### input.txt\n```\nThis is my Key.\n我有一個紅色辣椒啊\n我還有紅色的草莓啊\n2022紅色辣年糕\n```\n### output.txt\n```\nThis is my Value.\n我有一個綠色青椒\n我還有草莓口味的小熊軟糖\n2022草莓口味辣年糕\n```\n\u003eIn the second line, \"紅色辣椒\" would not be \"草莓口味辣椒\" and be \"綠色青椒\" correctly.\n\u003eIn the fourth line, replace \"紅色\" with \"草莓口味\" successfully and would not be disturbed by \"紅色辣椒\".\n\n## Getting started\n\n```bash\ngit clone https://github.com/Zhima-Mochi/replace-multiple-words.git\ncd replace-multiple-words\ndocker build -t replace-words .\ncd test\ndocker run --rm -v ${PWD}:/files replace-words your_mapping_file.txt your_input_file.txt your_output_file.txt\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhima-mochi%2Freplace-multiple-words","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhima-mochi%2Freplace-multiple-words","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhima-mochi%2Freplace-multiple-words/lists"}