tmp/tmpfiilbqlm/{from.md → to.md}
RENAMED
|
@@ -20,24 +20,22 @@ operator string_type() const;
|
|
| 20 |
```
|
| 21 |
|
| 22 |
*Returns:* `native()`.
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
-
template<class EcharT, class traits = char_traits<EcharT>,
|
| 26 |
-
|
| 27 |
-
basic_string<EcharT, traits, Allocator>
|
| 28 |
-
string(const Allocator& a = Allocator()) const;
|
| 29 |
```
|
| 30 |
|
| 31 |
*Returns:* `native()`.
|
| 32 |
|
| 33 |
*Remarks:* All memory allocation, including for the return value, shall
|
| 34 |
be performed by `a`. Conversion, if any, is specified by
|
| 35 |
[[fs.path.cvt]].
|
| 36 |
|
| 37 |
``` cpp
|
| 38 |
-
std::string
|
| 39 |
std::wstring wstring() const;
|
| 40 |
std::u8string u8string() const;
|
| 41 |
std::u16string u16string() const;
|
| 42 |
std::u32string u32string() const;
|
| 43 |
```
|
|
@@ -45,5 +43,15 @@ std::u32string u32string() const;
|
|
| 45 |
*Returns:* `native()`.
|
| 46 |
|
| 47 |
*Remarks:* Conversion, if any, is performed as specified by
|
| 48 |
[[fs.path.cvt]].
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
```
|
| 21 |
|
| 22 |
*Returns:* `native()`.
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
+
template<class EcharT, class traits = char_traits<EcharT>, class Allocator = allocator<EcharT>>
|
| 26 |
+
basic_string<EcharT, traits, Allocator> string(const Allocator& a = Allocator()) const;
|
|
|
|
|
|
|
| 27 |
```
|
| 28 |
|
| 29 |
*Returns:* `native()`.
|
| 30 |
|
| 31 |
*Remarks:* All memory allocation, including for the return value, shall
|
| 32 |
be performed by `a`. Conversion, if any, is specified by
|
| 33 |
[[fs.path.cvt]].
|
| 34 |
|
| 35 |
``` cpp
|
| 36 |
+
std::string system_encoded_string() const;
|
| 37 |
std::wstring wstring() const;
|
| 38 |
std::u8string u8string() const;
|
| 39 |
std::u16string u16string() const;
|
| 40 |
std::u32string u32string() const;
|
| 41 |
```
|
|
|
|
| 43 |
*Returns:* `native()`.
|
| 44 |
|
| 45 |
*Remarks:* Conversion, if any, is performed as specified by
|
| 46 |
[[fs.path.cvt]].
|
| 47 |
|
| 48 |
+
``` cpp
|
| 49 |
+
std::string display_string() const;
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
*Returns:* `std::format("{}", *this)`.
|
| 53 |
+
|
| 54 |
+
[*Note 3*: The returned string is suitable for use with
|
| 55 |
+
formatting [[format.functions]] and print
|
| 56 |
+
functions [[print.fun]]. — *end note*]
|
| 57 |
+
|