From Jason Turner

[fs.path.native.obs]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpcse48kl5/{from.md → to.md} +54 -0
tmp/tmpcse48kl5/{from.md → to.md} RENAMED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##### `path` native format observers <a id="fs.path.native.obs">[[fs.path.native.obs]]</a>
2
+
3
+ The string returned by all native format observers is in the native
4
+ pathname format ([[fs.def.native]]).
5
+
6
+ ``` cpp
7
+ const string_type& native() const noexcept;
8
+ ```
9
+
10
+ *Returns:* The pathname in the native format.
11
+
12
+ ``` cpp
13
+ const value_type* c_str() const noexcept;
14
+ ```
15
+
16
+ *Returns:* Equivalent to `native().c_str()`.
17
+
18
+ ``` cpp
19
+ operator string_type() const;
20
+ ```
21
+
22
+ *Returns:* `native()`.
23
+
24
+ [*Note 3*: Conversion to `string_type` is provided so that an object of
25
+ class `path` can be given as an argument to existing standard library
26
+ file stream constructors and open functions. — *end note*]
27
+
28
+ ``` cpp
29
+ template <class EcharT, class traits = char_traits<EcharT>,
30
+ class Allocator = allocator<EcharT>>
31
+ basic_string<EcharT, traits, Allocator>
32
+ string(const Allocator& a = Allocator()) const;
33
+ ```
34
+
35
+ *Returns:* `native()`.
36
+
37
+ *Remarks:* All memory allocation, including for the return value, shall
38
+ be performed by `a`. Conversion, if any, is specified by
39
+ [[fs.path.cvt]].
40
+
41
+ ``` cpp
42
+ std::string string() const;
43
+ std::wstring wstring() const;
44
+ std::string u8string() const;
45
+ std::u16string u16string() const;
46
+ std::u32string u32string() const;
47
+ ```
48
+
49
+ *Returns:* `pathstring`.
50
+
51
+ *Remarks:* Conversion, if any, is performed as specified by
52
+ [[fs.path.cvt]]. The encoding of the string returned by `u8string()` is
53
+ always UTF-8.
54
+