From Jason Turner

[fs.path.generic.obs]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmprpim2h9r/{from.md → to.md} +13 -5
tmp/tmprpim2h9r/{from.md → to.md} RENAMED
@@ -15,29 +15,37 @@ path("foo\\bar").generic_string()
15
  returns `"foo/bar"`.
16
 
17
  — *end example*]
18
 
19
  ``` cpp
20
- template<class EcharT, class traits = char_traits<EcharT>,
21
- class Allocator = allocator<EcharT>>
22
- basic_string<EcharT, traits, Allocator>
23
- generic_string(const Allocator& a = Allocator()) const;
24
  ```
25
 
26
  *Returns:* The pathname in the generic format.
27
 
28
  *Remarks:* All memory allocation, including for the return value, shall
29
  be performed by `a`. Conversion, if any, is specified by
30
  [[fs.path.cvt]].
31
 
32
  ``` cpp
33
- std::string generic_string() const;
34
  std::wstring generic_wstring() const;
35
  std::u8string generic_u8string() const;
36
  std::u16string generic_u16string() const;
37
  std::u32string generic_u32string() const;
38
  ```
39
 
40
  *Returns:* The pathname in the generic format.
41
 
42
  *Remarks:* Conversion, if any, is specified by  [[fs.path.cvt]].
43
 
 
 
 
 
 
 
 
 
 
 
 
15
  returns `"foo/bar"`.
16
 
17
  — *end example*]
18
 
19
  ``` cpp
20
+ template<class EcharT, class traits = char_traits<EcharT>, class Allocator = allocator<EcharT>>
21
+ basic_string<EcharT, traits, Allocator> generic_string(const Allocator& a = Allocator()) const;
 
 
22
  ```
23
 
24
  *Returns:* The pathname in the generic format.
25
 
26
  *Remarks:* All memory allocation, including for the return value, shall
27
  be performed by `a`. Conversion, if any, is specified by
28
  [[fs.path.cvt]].
29
 
30
  ``` cpp
31
+ std::string generic_system_encoded_string() const;
32
  std::wstring generic_wstring() const;
33
  std::u8string generic_u8string() const;
34
  std::u16string generic_u16string() const;
35
  std::u32string generic_u32string() const;
36
  ```
37
 
38
  *Returns:* The pathname in the generic format.
39
 
40
  *Remarks:* Conversion, if any, is specified by  [[fs.path.cvt]].
41
 
42
+ ``` cpp
43
+ std::string generic_display_string() const;
44
+ ```
45
+
46
+ *Returns:* `std::format("{:g}", *this)`.
47
+
48
+ [*Note 4*: The returned string is suitable for use with
49
+ formatting [[format.functions]] and print
50
+ functions [[print.fun]]. — *end note*]
51
+