1 | /* $Id: heapstring.h,v 1.12 2000-10-03 19:21:43 sandervl Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
5 | *
|
---|
6 | * Win32 compatibility string functions for OS/2
|
---|
7 | *
|
---|
8 | * Copyright 1999 Patrick Haller
|
---|
9 | */
|
---|
10 |
|
---|
11 | #include <odin.h>
|
---|
12 |
|
---|
13 | //used by Wine code
|
---|
14 | #define strcmpiW lstrcmpiW
|
---|
15 | //SvL: strcase -> case insensitive!
|
---|
16 | #define strncasecmp lstrncmpiA
|
---|
17 | #define strcasecmp lstrcmpiA
|
---|
18 | #define strcpyW lstrcpyW
|
---|
19 | #define strlenW lstrlenW
|
---|
20 | #define strncmpiW lstrncmpiW
|
---|
21 | #define strncmpW lstrncmpW
|
---|
22 | #define strcatW lstrcatW
|
---|
23 | #define toupperW(a) (WCHAR)CharUpperW((LPWSTR)a)
|
---|
24 | #define tolowerW(a) (WCHAR)CharLowerW((LPWSTR)a)
|
---|
25 | #define _strlwr(a) strlwr(a)
|
---|
26 |
|
---|
27 | /*****************************************************************************
|
---|
28 | * Prototypes *
|
---|
29 | *****************************************************************************/
|
---|
30 |
|
---|
31 | int WIN32API lstrlenA (LPCSTR arg1);
|
---|
32 | int WIN32API lstrlenW (LPCWSTR arg1);
|
---|
33 | LPSTR WIN32API lstrcatA (LPSTR arg1, LPCSTR arg2);
|
---|
34 | LPWSTR WIN32API lstrcatW (LPWSTR arg1, LPCWSTR arg2);
|
---|
35 | int WIN32API lstrcmpA (LPCSTR arg1, LPCSTR arg2);
|
---|
36 | int WIN32API lstrcmpW (LPCWSTR arg1, LPCWSTR arg2);
|
---|
37 | int WIN32API lstrncmpA (LPCSTR arg1, LPCSTR arg2, int i);
|
---|
38 | int WIN32API lstrncmpW (LPCWSTR arg1, LPCWSTR arg2, int i);
|
---|
39 | int WIN32API lstrncmpiA (LPCSTR arg1, LPCSTR arg2, int i);
|
---|
40 | int WIN32API lstrncmpiW (LPCWSTR arg1, LPCWSTR arg2, int i);
|
---|
41 | #define lstrcmpniW lstrncmpiW
|
---|
42 | LPSTR WIN32API lstrcpyA (LPSTR arg1, LPCSTR arg2);
|
---|
43 | LPWSTR WIN32API lstrcpyW (LPWSTR dest, LPCWSTR src);
|
---|
44 | LPSTR WIN32API lstrcpynA (LPSTR arg1, LPCSTR arg2, int arg3);
|
---|
45 | LPWSTR WIN32API lstrcpynW (LPWSTR dest, LPCWSTR src, int arg3);
|
---|
46 | int WIN32API lstrcmpiA (LPCSTR arg1, LPCSTR arg2);
|
---|
47 | int WIN32API lstrcmpiW (LPCWSTR arg1, LPCWSTR arg2);
|
---|
48 | int WIN32API lstrcpynAtoW (LPWSTR unicode, LPCSTR ascii, int asciilen);
|
---|
49 | int WIN32API lstrcpynWtoA (LPSTR ascii, LPCWSTR unicode, int unilen);
|
---|
50 | LPSTR WIN32API lstrcpyWtoA (LPSTR ascii, LPCWSTR unicode);
|
---|
51 | LPWSTR WIN32API lstrcpyAtoW (LPWSTR unicode, LPCSTR ascii);
|
---|
52 |
|
---|
53 | LPVOID WIN32API HEAP_xalloc ( HANDLE heap, DWORD flags, DWORD size );
|
---|
54 | LPVOID WIN32API HEAP_xrealloc ( HANDLE heap, DWORD flags, LPVOID lpMem, DWORD size );
|
---|
55 | LPVOID WIN32API HEAP_malloc ( DWORD size );
|
---|
56 | LPVOID WIN32API HEAP_realloc ( LPVOID lpMem, DWORD size );
|
---|
57 | DWORD WIN32API HEAP_size ( LPVOID lpMem );
|
---|
58 | VOID WIN32API HEAP_free ( LPVOID lpMem );
|
---|
59 |
|
---|
60 | LPSTR WIN32API HEAP_strdupA ( HANDLE heap, DWORD flags, LPCSTR str );
|
---|
61 | LPWSTR WIN32API HEAP_strdupW ( HANDLE heap, DWORD flags, LPCWSTR str );
|
---|
62 | LPWSTR WIN32API HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str );
|
---|
63 | LPSTR WIN32API HEAP_strdupWtoA( HANDLE heap, DWORD flags, LPCWSTR str );
|
---|
64 |
|
---|
65 | INT WIN32API WideCharToLocal(LPSTR pLocal, LPWSTR pWide, INT dwChars);
|
---|
66 | INT WIN32API LocalToWideChar(LPWSTR pWide, LPSTR pLocal, INT dwChars);
|
---|
67 |
|
---|