2 * Unicode string management
4 * Copyright 1996 Martin von Loewis
6 * Conversion between Unicode and ISO-8859-1 is inherently lossy,
7 * so the conversion code should be called only if it does not matter
18 LPWSTR STRING32_DupAnsiToUni(LPCSTR src)
20 LPWSTR dest=xmalloc(2*strlen(src)+2);
21 lstrcpyAtoW(dest,src);
26 STRING32_lstrchrW(LPCWSTR a,WCHAR c) {
36 STRING32_strdupW(LPCWSTR a) {
40 len=sizeof(WCHAR)*(lstrlen32W(a)+1);
41 b=(LPWSTR)xmalloc(len);