split-paragraphs 0.2.0

Iterator over paragraphs of a string.
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented2 out of 4 items with examples
  • Size
  • Source code size: 27.25 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.67 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
  • lkurcak/split-paragraphs
    0 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lubomirkurcak

split-paragraphs

Build status Build status Crates.io

Provides an iterator over paragraphs of a string.

Usage

use split_paragraphs::SplitParagraphs;

let text = "foo\r\nbar\n\nbaz\r";
let mut paragraphs = text.paragraphs();

assert_eq!(paragraphs.next(), Some("foo\r\nbar"));
assert_eq!(paragraphs.next(), Some("baz\r"));
assert_eq!(paragraphs.next(), None);

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 https://www.apache.org/licenses/LICENSE-2.0 or the MIT license https://opensource.org/licenses/MIT, at your option.