tmp/tmpo3v6v766/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
#####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
path root_name() const;
|
| 5 |
```
|
| 6 |
|
|
@@ -23,20 +23,21 @@ path root_path() const;
|
|
| 23 |
``` cpp
|
| 24 |
path relative_path() const;
|
| 25 |
```
|
| 26 |
|
| 27 |
*Returns:* A `path` composed from the pathname in the generic format, if
|
| 28 |
-
`
|
| 29 |
-
Otherwise, `path()`.
|
| 30 |
|
| 31 |
``` cpp
|
| 32 |
path parent_path() const;
|
| 33 |
```
|
| 34 |
|
| 35 |
-
*Returns:* `*this` if `
|
| 36 |
-
generic format pathname is the longest prefix of the generic
|
| 37 |
-
pathname of `*this` that produces one fewer element in its
|
|
|
|
| 38 |
|
| 39 |
``` cpp
|
| 40 |
path filename() const;
|
| 41 |
```
|
| 42 |
|
|
@@ -83,11 +84,11 @@ for (; !p.extension().empty(); p = p.stem())
|
|
| 83 |
|
| 84 |
``` cpp
|
| 85 |
path extension() const;
|
| 86 |
```
|
| 87 |
|
| 88 |
-
*Returns:*
|
| 89 |
`filename()` not included in `stem()`.
|
| 90 |
|
| 91 |
[*Example 8*:
|
| 92 |
|
| 93 |
``` cpp
|
|
|
|
| 1 |
+
##### Decomposition <a id="fs.path.decompose">[[fs.path.decompose]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
path root_name() const;
|
| 5 |
```
|
| 6 |
|
|
|
|
| 23 |
``` cpp
|
| 24 |
path relative_path() const;
|
| 25 |
```
|
| 26 |
|
| 27 |
*Returns:* A `path` composed from the pathname in the generic format, if
|
| 28 |
+
`empty()` is `false`, beginning with the first *filename* after
|
| 29 |
+
`root_path()`. Otherwise, `path()`.
|
| 30 |
|
| 31 |
``` cpp
|
| 32 |
path parent_path() const;
|
| 33 |
```
|
| 34 |
|
| 35 |
+
*Returns:* `*this` if `has_relative_path()` is `false`, otherwise a path
|
| 36 |
+
whose generic format pathname is the longest prefix of the generic
|
| 37 |
+
format pathname of `*this` that produces one fewer element in its
|
| 38 |
+
iteration.
|
| 39 |
|
| 40 |
``` cpp
|
| 41 |
path filename() const;
|
| 42 |
```
|
| 43 |
|
|
|
|
| 84 |
|
| 85 |
``` cpp
|
| 86 |
path extension() const;
|
| 87 |
```
|
| 88 |
|
| 89 |
+
*Returns:* A path whose pathname in the generic format is the suffix of
|
| 90 |
`filename()` not included in `stem()`.
|
| 91 |
|
| 92 |
[*Example 8*:
|
| 93 |
|
| 94 |
``` cpp
|