osstrtools

Crates.ioosstrtools
lib.rsosstrtools
version0.2.2
sourcesrc
created_at2019-04-15 23:48:03.733183
updated_at2020-05-25 11:25:21.915152
descriptionAdditional helper methods for OsStr
homepagehttps://github.com/rabite0/osstrtools
repositoryhttps://github.com/rabite0/osstrtools
max_upload_size
id128252
size31,328
(rabite0)

documentation

README

osstrtools

OsStrTools adds some useful methods to OsStr and OsString that are missing in the standard library, like split(), replace(), or splice(). It is mostly useful for dealing dealing with things like file names, command line arguments, PathBuf, and the like.

Windows support is experimental, but shoud hopefully mostly work, although it is not well tested and likely somewhat slower due to some overhead since it requires checking the strings for correctness. The checking is done by os_str_bytes.

Right now Windows support is still gated behind a feature flag. To enable it add this to your Cargo.toml:

[dependencies]
osstrtools = { version = "0.2", features = ["windows"] }
Commit count: 21

cargo fmt