Implement modified LWG 2665
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@284313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -277,6 +277,16 @@ string_view_t path::__root_directory() const
|
||||
return parser::extract_preferred(__pn_, start_i);
|
||||
}
|
||||
|
||||
string_view_t path::__root_path_raw() const
|
||||
{
|
||||
size_t e = parser::root_directory_end(__pn_);
|
||||
if (!parser::good(e))
|
||||
e = parser::root_name_end(__pn_);
|
||||
if (parser::good(e))
|
||||
return string_view_t{__pn_}.substr(0, e + 1);
|
||||
return {};
|
||||
}
|
||||
|
||||
string_view_t path::__relative_path() const
|
||||
{
|
||||
if (empty()) {
|
||||
|
||||
Reference in New Issue
Block a user