13 #ifndef __STOUT_OS_WINDOWS_GETCWD_HPP__    14 #define __STOUT_OS_WINDOWS_GETCWD_HPP__    29 inline std::string 
getcwd()
    32   const DWORD length = ::GetCurrentDirectoryW(0, 
nullptr);
    33   CHECK(length != 0) << 
"Failed to retrieve current directory buffer size";
    35   std::vector<wchar_t> buffer;
    36   buffer.reserve(static_cast<size_t>(length));
    38   const DWORD result = ::GetCurrentDirectoryW(length, buffer.data());
    39   CHECK(result != 0) << 
"Failed to determine current directory";
    50 #endif // __STOUT_OS_WINDOWS_GETCWD_HPP__ std::string getcwd()
Definition: getcwd.hpp:23
Definition: posix_signalhandler.hpp:23
std::string remove(const std::string &from, const std::string &substring, Mode mode=ANY)
Definition: strings.hpp:41
std::string stringify(int flags)