File tree 4 files changed +33
-7
lines changed
4 files changed +33
-7
lines changed Original file line number Diff line number Diff line change @@ -794,6 +794,7 @@ WARN_LOGFILE =
794
794
INPUT = @CMAKE_SOURCE_DIR@/include/skyr/config.hpp \
795
795
@CMAKE_SOURCE_DIR@/include/skyr/domain.hpp \
796
796
@CMAKE_SOURCE_DIR@/include/skyr/expected.hpp \
797
+ @CMAKE_SOURCE_DIR@/include/skyr/filesystem.hpp \
797
798
@CMAKE_SOURCE_DIR@/include/skyr/ipv4_address.hpp \
798
799
@CMAKE_SOURCE_DIR@/include/skyr/ipv6_address.hpp \
799
800
@CMAKE_SOURCE_DIR@/include/skyr/optional.hpp \
Original file line number Diff line number Diff line change
1
+ `std::filesystem::path `
2
+ ======================
3
+
4
+ .. doxygennamespace :: skyr::filesystem
5
+
6
+ .. doxygenfunction :: skyr::filesystem::from_path
7
+
8
+ .. doxygenfunction :: skyr::filesystem::to_path
9
+
10
+ .. doxygenenum :: skyr::filesystem::path_errc
Original file line number Diff line number Diff line change 1
1
Unicode encoding
2
2
================
3
3
4
- .. doxygenfunction :: skyr::wstring_to_bytes
4
+ .. doxygennamespace :: skyr::unicode
5
5
6
- .. doxygenfunction :: skyr::wstring_from_bytes
6
+ .. doxygenfunction :: skyr::unicode::wstring_to_bytes
7
7
8
- .. doxygenfunction :: skyr::utf16_to_bytes
8
+ .. doxygenfunction :: skyr::unicode::wstring_from_bytes
9
9
10
- .. doxygenfunction :: skyr::utf16_from_bytes
10
+ .. doxygenfunction :: skyr::unicode::utf16_to_bytes
11
11
12
- .. doxygenfunction :: skyr::utf32_to_bytes
12
+ .. doxygenfunction :: skyr::unicode::utf16_from_bytes
13
13
14
- .. doxygenfunction :: skyr::utf32_from_bytes
14
+ .. doxygenfunction :: skyr::unicode::utf32_to_bytes
15
15
16
- .. doxygenenum :: skyr::unicode_errc
16
+ .. doxygenfunction :: skyr::unicode::utf32_from_bytes
17
+
18
+ .. doxygenenum :: skyr::unicode::unicode_errc
Original file line number Diff line number Diff line change 12
12
#include < skyr/url.hpp>
13
13
14
14
namespace skyr {
15
+ // / \namespace filesystem
16
+ // / Contains functions to convert from filesystem path to URLs and
17
+ // / vice versa
15
18
namespace filesystem {
16
19
enum class path_errc {
17
20
invalid_path=1 ,
18
21
percent_decoding_error=2 ,
19
22
};
20
23
24
+ // / Creates a `std::error_code` given a `skyr::path_errc` value
25
+ // / \param error A filesystem path conversion error
26
+ // / \returns A `std::error_code` object
21
27
std::error_code make_error_code (path_errc error);
22
28
29
+ // / Converts a path object to a URL with a file protocol. Handles
30
+ // / some processing, including percent encoding
31
+ // / \param path A filesystem path
32
+ // / \returns a url object or an error on failure
23
33
expected<url, std::error_code> from_path (const std::filesystem::path &path);
24
34
35
+ // / Converts a URL pathname to a filesystem path
36
+ // / \param input A url object
37
+ // / \returns a path object or an error on failure
25
38
expected<std::filesystem::path, std::error_code> to_path (const url &input);
26
39
} // namespace filesystem
27
40
} // namespace skyr
You can’t perform that action at this time.
0 commit comments