Skip to content

rabite0/osstrtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Additional helper methods for OsStr

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages