{"id":22086218,"url":"https://github.com/probablyclem/string_parser","last_synced_at":"2025-10-06T16:28:27.048Z","repository":{"id":57668826,"uuid":"278616514","full_name":"ProbablyClem/string_parser","owner":"ProbablyClem","description":"Rust string parsing lcrate","archived":false,"fork":false,"pushed_at":"2020-07-18T17:27:32.000Z","size":7881,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-08T05:46:30.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/ProbablyClem.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}},"created_at":"2020-07-10T11:26:54.000Z","updated_at":"2020-07-18T17:27:34.000Z","dependencies_parsed_at":"2022-08-27T03:50:37.054Z","dependency_job_id":null,"html_url":"https://github.com/ProbablyClem/string_parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ProbablyClem/string_parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProbablyClem%2Fstring_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProbablyClem%2Fstring_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProbablyClem%2Fstring_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProbablyClem%2Fstring_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProbablyClem","download_url":"https://codeload.github.com/ProbablyClem/string_parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProbablyClem%2Fstring_parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278642028,"owners_count":26020788,"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-06T02:00:05.630Z","response_time":65,"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":[],"created_at":"2024-12-01T01:22:19.600Z","updated_at":"2025-10-06T16:28:27.005Z","avatar_url":"https://github.com/ProbablyClem.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# string_parser\n## Rust string parsing crate\n### Doc : https://crates.io/crates/string-parser\n### Usage :\n```Rust\nuse std::rc::Rc;\nextern crate string_parser;\nuse string_parser::Parser; \n \nfn end_filter(c : Vec\u003cchar\u003e) -\u003e bool{            \n    if c.last().unwrap()== \u0026'\\'' {\n        return true;\n        }\n    else {\n        return false;\n        }   \n}\n\n//can also use closures\nlet callback = |s : String, line : usize, file : \u0026str| {\n    assert_eq!(String::from(\"foo\"), s); \n};\n\nlet mut string_parser = Parser::new();\n\nstring_parser.add(String::from(\"'\"), Rc::new(Box::from(end_filter)), Rc::new(Box::from(callback)));\nstring_parser.parse(\"./text\");\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobablyclem%2Fstring_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobablyclem%2Fstring_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobablyclem%2Fstring_parser/lists"}