diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-21 17:05:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-21 17:05:33 +0000 |
commit | 6ba9043d83f28cf2b6c7d10c5d5495d15de344c1 (patch) | |
tree | 40aeea3b7d6a1198647b4d896b41f725ee85c98b /plugins/Scriver/src/utils.cpp | |
parent | 2072201029bdd799396b37de23410bab71cc653e (diff) |
own a2t/t2a conversion routines removed from Scriver
git-svn-id: http://svn.miranda-ng.org/main/trunk@5084 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/utils.cpp')
-rw-r--r-- | plugins/Scriver/src/utils.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Scriver/src/utils.cpp b/plugins/Scriver/src/utils.cpp index 4e07d78598..5d92d914f6 100644 --- a/plugins/Scriver/src/utils.cpp +++ b/plugins/Scriver/src/utils.cpp @@ -36,6 +36,20 @@ int safe_wcslen(wchar_t *msg, int maxLen) { return 0;
}
+wchar_t *a2w(const char *src, int len) {
+ wchar_t *wline;
+ int i;
+ if (len <0) {
+ len = (int)strlen(src);
+ }
+ wline = (wchar_t*)mir_alloc(2 * (len + 1));
+ for (i = 0; i < len; i ++) {
+ wline[i] = src[i];
+ }
+ wline[i] = 0;
+ return wline;
+}
+
static int mimFlags = 0;
enum MIMFLAGS {
|