Gives ANSI path to curl CURLOPT_CAINFO

This commit is contained in:
RipleyTom 2020-03-26 20:48:56 +00:00 committed by Ivan
parent 2aac46efcc
commit cd4eed0704
5 changed files with 72 additions and 3 deletions

View file

@ -7,6 +7,12 @@
#include <functional>
#include <string_view>
#ifdef _WIN32
std::string wchar_to_utf8(wchar_t *src);
std::string wchar_path_to_ansi_path(const std::wstring& src);
std::string utf8_path_to_ansi_path(const std::string& src);
#endif
// Copy null-terminated string from a std::string or a char array to a char array with truncation
template <typename D, typename T>
inline void strcpy_trunc(D& dst, const T& src)