fs/Path: add method data()

This commit is contained in:
Max Kellermann 2013-10-14 21:57:43 +02:00
parent c96b295700
commit b915e43391

View File

@ -199,6 +199,15 @@ public:
return value.c_str();
}
/**
* 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"