diff options
author | Max Kellermann <max@duempel.org> | 2013-10-14 21:57:43 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-14 21:57:43 +0200 |
commit | b915e433911b4597626c721a8ae4a6e9dae6ac5a (patch) | |
tree | c3d9662546ff5c6fa15a408f07a23d0aadec8d1b | |
parent | c96b29570042eff627d5e956f5ce58630385d18f (diff) | |
download | mpd-b915e433911b4597626c721a8ae4a6e9dae6ac5a.tar.gz mpd-b915e433911b4597626c721a8ae4a6e9dae6ac5a.tar.xz mpd-b915e433911b4597626c721a8ae4a6e9dae6ac5a.zip |
fs/Path: add method data()
-rw-r--r-- | src/fs/Path.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx index faeb669b7..9bbedeeab 100644 --- a/src/fs/Path.hxx +++ b/src/fs/Path.hxx @@ -200,6 +200,15 @@ public: } /** + * Returns a pointer to the raw value, not necessarily + * null-terminated. + */ + gcc_pure + const_pointer data() const { + return value.data(); + } + + /** * Convert the path to UTF-8. * Returns empty string on error or if this instance is "nulled" * (#IsNull returns true). |