diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-04-03 12:01:49 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-04-06 19:31:59 +0100 |
commit | 4c9611cb3d9f18322f8e77f8ba493799d77c0a0a (patch) | |
tree | d8b8fa3450ba94391d30ab61038ee97cfbabbc6d /platform/windows/mupdfwinrt/utils.cpp | |
parent | 1ed4656f99a09f38216d11275fe85bb75c0d635a (diff) | |
download | mupdf-4c9611cb3d9f18322f8e77f8ba493799d77c0a0a.tar.xz |
Remove gsview from mupdf repo.
It has its own repo now. See http://git.ghostscript.com/?p=gsview.git
Diffstat (limited to 'platform/windows/mupdfwinrt/utils.cpp')
-rw-r--r-- | platform/windows/mupdfwinrt/utils.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/platform/windows/mupdfwinrt/utils.cpp b/platform/windows/mupdfwinrt/utils.cpp deleted file mode 100644 index 9c20c620..00000000 --- a/platform/windows/mupdfwinrt/utils.cpp +++ /dev/null @@ -1,28 +0,0 @@ -#include "pch.h" -#include "utils.h" - -/* Window string hurdles.... */ -String^ char_to_String(const char *char_in) -{ - size_t size = MultiByteToWideChar(CP_UTF8, 0, char_in, -1, NULL, 0); - wchar_t *pw; - pw = new wchar_t[size]; - if (!pw) - { - delete []pw; - return nullptr; - } - MultiByteToWideChar(CP_UTF8, 0, char_in, -1, pw, size ); - String^ str_out = ref new String(pw); - delete []pw; - return str_out; -} - -char* String_to_char(String^ text) -{ - const wchar_t *w = text->Data(); - int cb = WideCharToMultiByte(CP_UTF8, 0, text->Data(), -1, nullptr, 0, nullptr, nullptr); - char* charout = new char[cb]; - WideCharToMultiByte(CP_UTF8, 0, text->Data() ,-1 ,charout ,cb ,nullptr, nullptr); - return charout; -} |