comma-separated 0.1.0

Iterator over a comma-seperated string, ignoring any commas inside quotes
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented1 out of 3 items with examples
  • Size
  • Source code size: 11.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.08 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • icewind1991/comma-separated
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • icewind1991

Comma-separated

Iterator over a comma-seperated string, ignoring any commas inside quotes

use comma_separated::CommaSeparatedIterator;

fn main() {
    let input = r#"foo, "bar", 'quoted, part'"#;
    let iterator = CommaSeparatedIterator::new(input);
    assert_eq!(vec!["foo", "\"bar\"", "'quoted, part'"], iterator.collect::<Vec<_>>());
}