2 unstable releases

0.2.0 Dec 4, 2024
0.1.0 Aug 5, 2024

#106 in Parser tooling

Download history 9/week @ 2024-09-16 5/week @ 2024-09-23 25/week @ 2024-09-30 2/week @ 2024-10-07 154/week @ 2024-12-02 12/week @ 2024-12-09

166 downloads per month

MIT/Apache

9KB
100 lines

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.

No runtime deps