Crates.io | osstrtools |
lib.rs | osstrtools |
version | 0.2.2 |
source | src |
created_at | 2019-04-15 23:48:03.733183 |
updated_at | 2020-05-25 11:25:21.915152 |
description | Additional helper methods for OsStr |
homepage | https://github.com/rabite0/osstrtools |
repository | https://github.com/rabite0/osstrtools |
max_upload_size | |
id | 128252 |
size | 31,328 |
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"] }