DeskUp 0.3
Loading...
Searching...
No Matches
backend_utils.h
Go to the documentation of this file.
1
27
28#ifndef BACKENDUTILS_H
29#define BACKENDUTILS_H
30
31#include <string>
32
33#ifdef _WIN32
34 #include <Windows.h>
35
44std::string WideStringToUTF8(LPCWCH wideString);
45
55std::string getSystemErrorMessageWindows(DWORD error, const std::string_view& contextMessage = "");
56
57#endif
58
67std::string toLowerStr(const std::string& s);
68
78std::string normalizePathLower(const std::string& p);
79
88std::wstring UTF8ToWide(const std::string& s);
89
90#endif
std::string toLowerStr(const std::string &s)
A function to convert a string to its lowercase version.
Definition backend_utils.cc:88
std::string normalizePathLower(const std::string &p)
A function to convert a generic path to a windows path using backslash path and later convert it to l...
Definition backend_utils.cc:98
std::wstring UTF8ToWide(const std::string &s)
A function to convert a normal string into a wide one.