From Jason Turner

[fs.class.path.general]

Diff to HTML by rtfpessoa

tmp/tmpt2nfh5s9/{from.md → to.md} RENAMED
@@ -34,12 +34,12 @@ Pathnames are formatted according to the generic pathname format grammar
34
 
35
  *Pathname resolution* is the operating system dependent mechanism for
36
  resolving a pathname to a particular file in a file hierarchy. There may
37
  be multiple pathnames that resolve to the same file.
38
 
39
- [*Example 1*: POSIX specifies the mechanism in section 4.12, Pathname
40
- resolution. — *end example*]
41
 
42
  ``` cpp
43
  namespace std::filesystem {
44
  class path {
45
  public:
@@ -122,22 +122,24 @@ namespace std::filesystem {
122
 
123
  template<class EcharT, class traits = char_traits<EcharT>,
124
  class Allocator = allocator<EcharT>>
125
  basic_string<EcharT, traits, Allocator>
126
  string(const Allocator& a = Allocator()) const;
127
- std::string string() const;
 
128
  std::wstring wstring() const;
129
  std::u8string u8string() const;
130
  std::u16string u16string() const;
131
  std::u32string u32string() const;
132
 
133
  // [fs.path.generic.obs], generic format observers
134
  template<class EcharT, class traits = char_traits<EcharT>,
135
  class Allocator = allocator<EcharT>>
136
  basic_string<EcharT, traits, Allocator>
137
  generic_string(const Allocator& a = Allocator()) const;
138
- std::string generic_string() const;
 
139
  std::wstring generic_wstring() const;
140
  std::u8string generic_u8string() const;
141
  std::u16string generic_u16string() const;
142
  std::u32string generic_u32string() const;
143
 
@@ -156,11 +158,11 @@ namespace std::filesystem {
156
  path filename() const;
157
  path stem() const;
158
  path extension() const;
159
 
160
  // [fs.path.query], query
161
- [[nodiscard]] bool empty() const noexcept;
162
  bool has_root_name() const;
163
  bool has_root_directory() const;
164
  bool has_root_path() const;
165
  bool has_relative_path() const;
166
  bool has_parent_path() const;
 
34
 
35
  *Pathname resolution* is the operating system dependent mechanism for
36
  resolving a pathname to a particular file in a file hierarchy. There may
37
  be multiple pathnames that resolve to the same file.
38
 
39
+ [*Example 1*: For POSIX-based operating systems, this mechanism is
40
+ specified in POSIX, section 4.12, Pathname resolution. — *end example*]
41
 
42
  ``` cpp
43
  namespace std::filesystem {
44
  class path {
45
  public:
 
122
 
123
  template<class EcharT, class traits = char_traits<EcharT>,
124
  class Allocator = allocator<EcharT>>
125
  basic_string<EcharT, traits, Allocator>
126
  string(const Allocator& a = Allocator()) const;
127
+ std::string display_string() const;
128
+ std::string system_encoded_string() const;
129
  std::wstring wstring() const;
130
  std::u8string u8string() const;
131
  std::u16string u16string() const;
132
  std::u32string u32string() const;
133
 
134
  // [fs.path.generic.obs], generic format observers
135
  template<class EcharT, class traits = char_traits<EcharT>,
136
  class Allocator = allocator<EcharT>>
137
  basic_string<EcharT, traits, Allocator>
138
  generic_string(const Allocator& a = Allocator()) const;
139
+ std::string generic_display_string() const;
140
+ std::string generic_system_encoded_string() const;
141
  std::wstring generic_wstring() const;
142
  std::u8string generic_u8string() const;
143
  std::u16string generic_u16string() const;
144
  std::u32string generic_u32string() const;
145
 
 
158
  path filename() const;
159
  path stem() const;
160
  path extension() const;
161
 
162
  // [fs.path.query], query
163
+ bool empty() const noexcept;
164
  bool has_root_name() const;
165
  bool has_root_directory() const;
166
  bool has_root_path() const;
167
  bool has_relative_path() const;
168
  bool has_parent_path() const;