osstrtools 0.2.2

Additional helper methods for OsStr
Documentation

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"] }