quoted_strings

Crates.ioquoted_strings
lib.rsquoted_strings
version0.1.0
sourcesrc
created_at2018-02-14 21:40:06.392574
updated_at2018-02-14 21:40:06.392574
descriptionProvides an iterator through quoted strings.
homepage
repositoryhttps://github.com/jkcclemens/quoted_strings
max_upload_size
id51201
size6,104
Anna (anna-is-cute)

documentation

https://docs.rs/quoted_strings

README

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?
}
Commit count: 2

cargo fmt