Files
cppdraft_translate/cppdraft/fs/path/native/obs.md
2025-10-25 03:02:53 +03:00

3.2 KiB

[fs.path.native.obs]

31 Input/output library [input.output]

31.12 File systems [filesystems]

31.12.6 Class path [fs.class.path]

31.12.6.5 Members [fs.path.member]

31.12.6.5.6 Native format observers [fs.path.native.obs]

1

#

The string returned by all native format observers is in the native pathname format ([fs.class.path]).

🔗

const string_type& native() const noexcept;

2

#

Returns: The pathname in the native format.

🔗

const value_type* c_str() const noexcept;

3

#

Effects: Equivalent to: return native().c_str();

🔗

operator string_type() const;

4

#

Returns: native().

🔗

template<class EcharT, class traits = char_traits<EcharT>, class Allocator = allocator<EcharT>> basic_string<EcharT, traits, Allocator> string(const Allocator& a = Allocator()) const;

5

#

Returns: native().

6

#

Remarks: All memory allocation, including for the return value, shall be performed by a.

Conversion, if any, is specified by[fs.path.cvt].

🔗

std::string system_encoded_string() const; std::wstring wstring() const; std::u8string u8string() const; std::u16string u16string() const; std::u32string u32string() const;

7

#

Returns: native().

8

#

Remarks: Conversion, if any, is performed as specified by [fs.path.cvt].

🔗

std::string display_string() const;

9

#

Returns: format("{}", *this).

[Note 1:

The returned string is suitable for use with formatting ([format.functions]) and print functions ([print.fun]).

— end note]