split-paragraphs

Crates.iosplit-paragraphs
lib.rssplit-paragraphs
version
sourcesrc
created_at2024-08-05 01:52:17.695749
updated_at2024-12-04 01:39:20.185138
descriptionIterator over paragraphs of a string.
homepage
repositoryhttps://github.com/lubomirkurcak/split-paragraphs
max_upload_size
id1325406
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Ľubomír Kurčák (lubomirkurcak)

documentation

README

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.

Commit count: 18

cargo fmt