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 LPSTR
STRING32_DupUniToAnsi(LPCWSTR src
)
20 LPSTR dest
=xmalloc(lstrlen32W(src
)+1);
21 lstrcpyWtoA(dest
,src
);
25 LPWSTR
STRING32_DupAnsiToUni(LPCSTR src
)
27 LPWSTR dest
=xmalloc(2*strlen(src
)+2);
28 lstrcpyAtoW(dest
,src
);
32 /* not an API function */
34 WCHAR
STRING32_tolowerW(WCHAR c
)
41 STRING32_lstrchrW(LPCWSTR a
,WCHAR c
) {
51 STRING32_strdupW(LPCWSTR a
) {
55 len
=sizeof(WCHAR
)*(lstrlen32W(a
)+1);
56 b
=(LPWSTR
)xmalloc(len
);