Iros
 
Loading...
Searching...
No Matches
path.h
Go to the documentation of this file.
1#pragma once
2
8
9namespace di::container {
12}
13
14namespace di {
15inline namespace literals {
16 inline namespace path_literals {
17 template<container::FixedString literal>
18 constexpr auto operator""_u8p() {
20 return view.to_owned();
21 }
22
23 constexpr auto operator"" _u8p(c8 const* data, size_t size) {
24 auto span = di::Span { data, size };
26 auto view =
28 return view.to_owned();
29 }
30
31 constexpr auto operator"" _p(char const* data, size_t size) {
32 auto span = di::Span { data, size };
34 return view.to_owned();
35 }
36 }
37}
38}
39
40namespace di {
41using container::Path;
43}
44
45#if !defined(DI_NO_GLOBALS) && !defined(DI_NO_GLOBAL_PATH_LITERALS)
46using namespace di::literals::path_literals;
47#endif
#define DI_ASSERT(...)
Definition assert_bool.h:7
Definition path_view_impl.h:15
Definition utf8_encoding.h:107
Definition span_forward_declaration.h:10
constexpr auto validate
Definition encoding.h:135
constexpr auto assume_valid
Definition encoding.h:236
Definition sequence.h:12
string::StringViewImpl< string::Utf8Encoding > StringView
Definition string_view.h:12
PathViewImpl< string::TransparentEncoding > PathView
Definition path_view.h:11
PathImpl< String > Utf8Path
Definition path.h:11
PathViewImpl< string::Utf8Encoding > Utf8PathView
Definition path_view.h:12
PathImpl< TransparentString > Path
Definition path.h:10
constexpr auto fixed_string_to_utf8_string_view
Definition fixed_string_to_utf8_string_view.h:32
string::StringViewImpl< string::TransparentEncoding > TransparentStringView
Definition string_view.h:13
Definition path.h:16
Definition duration_literals.h:20
char8_t c8
Definition char.h:4
Definition zstring_parser.h:9
constexpr auto size
Definition size.h:54
constexpr auto data
Definition data.h:51