diff options
author | crupest <crupest@outlook.com> | 2022-01-25 18:39:14 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-25 18:39:14 +0800 |
commit | d3aa43d9ea0dfc32935767cf60a89af2736dc339 (patch) | |
tree | e8cf043ac6d9a2e6ce038ad6b1f57079834ef129 /include/cru/common/String.hpp | |
parent | 71c01a175a939d1a519ab235fdfdeec1101f8b84 (diff) | |
download | cru-d3aa43d9ea0dfc32935767cf60a89af2736dc339.tar.gz cru-d3aa43d9ea0dfc32935767cf60a89af2736dc339.tar.bz2 cru-d3aa43d9ea0dfc32935767cf60a89af2736dc339.zip |
...
Diffstat (limited to 'include/cru/common/String.hpp')
-rw-r--r-- | include/cru/common/String.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cru/common/String.hpp b/include/cru/common/String.hpp index 22d68980..c1f957c0 100644 --- a/include/cru/common/String.hpp +++ b/include/cru/common/String.hpp @@ -5,6 +5,7 @@ #include "StringUtil.hpp" #include <double-conversion/double-conversion.h> +#include <filesystem> #include <initializer_list> #include <iterator> #include <string> @@ -50,6 +51,8 @@ class CRU_BASE_API String { return String{from_buffer_tag{}, buffer, size, capacity}; } + static String FromStdPath(const std::filesystem::path& path); + #ifdef CRU_PLATFORM_WINDOWS static String FromUtf16(wchar_t* str) { return String(str); } static String FromUtf16(wchar_t* str, Index size) { |