fs/Path: add method data()
This commit is contained in:
parent
c96b295700
commit
b915e43391
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user