{"id":20145881,"url":"https://github.com/usagi/split-optional","last_synced_at":"2026-02-13T09:30:58.464Z","repository":{"id":59092287,"uuid":"535379318","full_name":"usagi/split-optional","owner":"usagi","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-11T17:50:14.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T19:24:06.735Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usagi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-11T17:50:06.000Z","updated_at":"2023-01-16T13:13:37.000Z","dependencies_parsed_at":"2022-09-24T19:04:16.429Z","dependency_job_id":null,"html_url":"https://github.com/usagi/split-optional","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/usagi/split-optional","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi%2Fsplit-optional","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi%2Fsplit-optional/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi%2Fsplit-optional/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi%2Fsplit-optional/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usagi","download_url":"https://codeload.github.com/usagi/split-optional/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi%2Fsplit-optional/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29400517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-13T22:18:34.868Z","updated_at":"2026-02-13T09:30:58.447Z","avatar_url":"https://github.com/usagi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# split-optional\n\nIt split from a source `str` to `Option\u003c\u0026'a str\u003e` per an element.\n\n## Usage | Example\n\n- See also: [examples/a.rs](examples/a.rs)\n  - `cargo run --examples a`\n\n```rust\nfn main()\n{\n const SOME_INPUT: \u0026str = \"aaa,bbb,ccc\";\n\n // (Some(\"aaa\"), Some(\"bbb,ccc\"))\n let result = split_optional::split2(SOME_INPUT, \",\");\n println!(\"{result:?}\");\n\n // (Some(\"aaa\"), Some(\"bbb\"), Some(\"ccc\"))\n let result = split_optional::split3(SOME_INPUT, \",\");\n println!(\"{result:?}\");\n\n // (Some(\"aaa\"), Some(\"bbb\"), Some(\"ccc\"), None)\n let result = split_optional::split4(SOME_INPUT, \",\");\n println!(\"{result:?}\");\n\n // (Some(\"aaa\"), Some(\"bbb\"), Some(\"ccc\"), None, None)\n let result = split_optional::split5(SOME_INPUT, \",\");\n println!(\"{result:?}\");\n}\n```\n\n## License\n\n- [MIT](LICENSE.md)\n\n## Author\n\n- [Usagi Ito @ USAGI.NETWORK](https://usagi.network/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusagi%2Fsplit-optional","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusagi%2Fsplit-optional","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusagi%2Fsplit-optional/lists"}