strtools

Crates.iostrtools
lib.rsstrtools
version0.3.1
sourcesrc
created_at2022-04-18 17:30:25.920658
updated_at2022-07-09 10:47:35.769686
descriptionA library containing various string utilities
homepage
repositoryhttps://github.com/ErikBuennig/strtools/
max_upload_size
id569941
size88,853
Erik Bünnig (epbuennig)

documentation

README

strtools

strtools is a rust library for various helpful string extensions. It is under active development and adding more features is planned, criticism and contributions are welcome.

Examples

use strtools::StrTools;

// split a string by some separator but ignore escaped ones
let parts: Vec<_> = r"this string\ is split by\ spaces unless they are\ escaped"
    .split_non_escaped('\\', ' ')
    .collect();

assert_eq!(
    parts,
    [
        "this",
        "string is",
        "split",
        "by spaces",
        "unless",
        "they",
        "are escaped"
    ]
);

License

strtools is currently licensed under the MIT license.

Commit count: 34

cargo fmt