aboutsummaryrefslogtreecommitdiff
path: root/c/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/common.h')
-rw-r--r--c/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/common.h b/c/common.h
index 39fa9b8..6dfd782 100644
--- a/c/common.h
+++ b/c/common.h
@@ -13,6 +13,8 @@
struct wstring_owner
{
+ static wstring_owner from_narrow(const char* buf, int cp = CP_UTF8);
+ static wstring_owner copy(const wchar_t* s);
wstring_owner();
wstring_owner(wchar_t* s);
wstring_owner& operator=(wchar_t* s);
@@ -26,9 +28,7 @@ struct wstring_owner
wchar_t* p = nullptr;
};
-wstring_owner WsoFromSz(const char* buf, int cp = CP_UTF8);
int EBMessageBox(const wchar_t* wszText, const wchar_t* wszCaption, unsigned uType);
-wstring_owner WsoCopy(const wchar_t* s);
struct Win32Error : public std::exception
{