Long and multi-format path manipulation library?
Is there any open source open source library that supports all of the following?
-
Unlimited path lengths (i.e. the only limit must be from a range
size_t
, not arbitrary limits, such as 256 characters) -
Basic manipulations such as canonicalization equivalent
basename
,dirname
getting file extension, obtaining root, etc. -
All valid paths and file names in the style of Windows, such as
\Rooted
,Dir/
,C:\Dir/foo
,File
,\\Computer\Dir/File
,\\.\C:
,Foo\./.\Bar:ADS
or\\?\C:\Dir\Escaped:ADS:$DATA
- I believe this should also cover POSIX-style paths, but if not, they should work too.
I'd prefer C ++, but C is great too.
source to share