#string #quoted #quote #unquote

quoted_strings

Provides an iterator through quoted strings

1 unstable release

Uses old Rust 2015

0.1.0 Feb 14, 2018

#3 in #unquote


Used in 2 crates

MIT license

6KB
114 lines

quoted_strings

If you need to process strings that may contain quotes and the strings are delimited by spaces, this is the library for you!

extern crate quoted_strings;

use quoted_strings::QuotedParts;

fn main() {
  let string = r#"
    This sure is some "sample text," isn't it?
  "#;

  for part in QuotedParts::from(string) {
    println!("{}", part);
  }

  // This
  // sure
  // is
  // some
  // sample text,
  // isn't
  // it?
}

No runtime deps