13 #ifndef __STOUT_INTERNAL_WINDOWS_LONGPATH_HPP__
14 #define __STOUT_INTERNAL_WINDOWS_LONGPATH_HPP__
38 inline std::wstring
longpath(
const std::string& path)
40 const size_t max_path_length = 248;
41 if (path.size() >= max_path_length &&
44 return wide_stringify(os::LONGPATH_PREFIX + path);
46 return wide_stringify(path);
51 inline std::wstring
longpath(
const std::wstring& path)
59 #endif // __STOUT_INTERNAL_WINDOWS_LONGPATH_HPP__
bool absolute(const std::string &path)
Returns whether the given path is an absolute path.
Definition: path.hpp:96
std::wstring longpath(const std::string &path)
Definition: longpath.hpp:38
std::string stringify(int flags)
bool startsWith(const std::string &s, const std::string &prefix)
Definition: strings.hpp:380