The Pathie C++ library is a small C++ library that provides you with the means to handle path names properly, with special focus on supporting Unicode pathnames. As such, it gives access to the usual path management methods (like getting the parent directory or splitting a filename in directory and basename parts), but most importantly, it flawlessly works with UTF-8 pathnames regardless of the underlying platform (including Windows). In your application, you can just use UTF-8, and Pathie will transparently transform that to whatever the local filesystem encoding is.
Apart from the core path handling facility, Pathie also provides methods to retrieve the standard pathes a user has. On Linux, it covers both the XDG directories (properly localised so you get ~/Dokumente for the Documents directory on a German system) and the dot-dir group of directories (~/.config, etc.). On Windows, it gives you access to the User’s standard directory as exposed via the Win32API (e.g., C:/Users/Yourname/Documents).
Pathie currently supports Linux and Windows/MinGW. More detailed information is available in the README.
Pathie is a C++98 library, so you’ll need a C++98-compliant compiler.
The stable version is 0.1.1, released on 2019-05-12.
- Current stable release: pathie-0.1.1.tar.gz (GPG signature; SHA256 checksum: 82b3e313baa4c153977225b4febfb7592c37088ec5c7fb5ea8d302d1de120169)
- Previous stable release: pathie-0.1.0.tar.gz (GPG signature; SHA256 checksum: a22b19524d6fe908ee95659988b0bb6a9a586d6551d0ba65768cfb38285e46dc)
The source code can be viewed online. To clone the repository to your local machine:
$ git clone git://git.guelker.eu/pathie.git
There’s also a GitHub mirror.
The documentation can be generated locally by running the doxygen command in the project’s toplevel directory. It is also available for download.
Pathie is distributed under the BSD license.