~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/include/msvcrt/string.h

Version: ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~ [ wine-1.0-rc5 ] ~ [ wine-1.0-rc4 ] ~ [ wine-1.0-rc3 ] ~ [ wine-1.0-rc2 ] ~ [ wine-1.0-rc1 ] ~ [ wine-0.9.61 ] ~ [ wine-0.9.60 ] ~ [ wine-0.9.59 ] ~ [ wine-0.9.58 ] ~ [ wine-0.9.57 ] ~ [ wine-0.9.56 ] ~ [ wine-0.9.55 ] ~ [ wine-0.9.54 ] ~ [ wine-0.9.53 ] ~ [ wine-0.9.52 ] ~ [ wine-0.9.51 ] ~ [ wine-0.9.50 ] ~ [ wine-0.9.49 ] ~ [ wine-0.9.48 ] ~ [ wine-0.9.47 ] ~ [ wine-0.9.46 ] ~ [ wine-0.9.45 ] ~ [ wine-0.9.44 ] ~ [ wine-0.9.43 ] ~ [ wine-0.9.42 ] ~ [ wine-0.9.41 ] ~ [ wine-0.9.40 ] ~ [ wine-0.9.39 ] ~ [ wine-0.9.38 ] ~ [ wine-0.9.37 ] ~ [ wine-0.9.36 ] ~ [ wine-0.9.35 ] ~ [ wine-0.9.34 ] ~ [ wine-0.9.33 ] ~ [ wine-0.9.32 ] ~ [ wine-0.9.31 ] ~ [ wine-0.9.30 ] ~ [ wine-0.9.29 ] ~ [ wine-0.9.28 ] ~ [ wine-0.9.27 ] ~ [ wine-0.9.26 ] ~ [ wine-0.9.25 ] ~ [ wine-0.9.24 ] ~ [ wine-0.9.23 ] ~ [ wine-0.9.22 ] ~ [ wine-0.9.21 ] ~ [ wine-0.9.20 ] ~ [ wine-0.9.19 ] ~ [ wine-0.9.18 ] ~ [ wine-0.9.17 ] ~ [ wine-0.9.16 ] ~ [ wine-0.9.15 ] ~ [ wine-0.9.14 ] ~ [ wine-0.9.13 ] ~ [ wine-0.9.12 ] ~ [ wine-0.9.11 ] ~ [ wine-0.9.10 ] ~ [ wine-0.9.9 ] ~ [ wine-0.9.8 ] ~ [ wine-0.9.7 ] ~ [ wine-0.9.6 ] ~ [ wine-0.9.5 ] ~ [ wine-0.9.4 ] ~ [ wine-0.9.3 ] ~ [ wine-0.9.2 ] ~ [ wine-0.9.1 ] ~ [ wine-0.9 ] ~ [ wine20050930 ] ~ [ wine20050830 ] ~ [ wine20050725 ] ~ [ wine20050628 ] ~ [ wine20050524 ] ~ [ wine20050419 ] ~ [ wine20050310 ] ~ [ wine20050211 ] ~ [ wine20050111 ] ~ [ wine20041201 ] ~ [ wine20041019 ] ~ [ wine20040914 ] ~ [ wine20040813 ] ~ [ wine20040716 ] ~ [ wine20040615 ] ~ [ wine20040505 ] ~ [ wine20040408 ] ~ [ wine20040309 ] ~ [ wine20040213 ] ~ [ wine20040121 ] ~ [ wine20031212 ] ~ [ wine20031118 ] ~ [ wine20031016 ] ~ [ wine20030911 ] ~ [ wine20030813 ] ~ [ wine20030709 ] ~ [ wine20030618 ] ~ [ wine20030508 ] ~ [ wine20030408 ] ~ [ wine20030318 ] ~ [ wine20030219 ] ~ [ wine20030115 ] ~ [ wine20021219 ] ~ [ wine20021125 ] ~ [ wine20021031 ] ~ [ wine20021007 ] ~ [ wine20020904 ] ~ [ wine20020804 ] ~ [ wine20020710 ] ~ [ wine20020605 ] ~ [ wine20020509 ] ~ [ wine20020411 ] ~ [ wine20020310 ] ~ [ wine20020228 ] ~ [ wine20011226 ] ~ [ wine20011108 ] ~ [ wine20011004 ] ~ [ wine20010824 ] ~ [ wine20010731 ] ~ [ wine20010629 ] ~ [ wine20010510 ] ~ [ wine20010418 ] ~ [ wine20010326 ] ~ [ wine20010305 ] ~ [ wine20010216 ] ~ [ wine20010112 ] ~ [ wine20001222 ] ~ [ wine20001202 ] ~ [ wine20001026 ] ~ [ wine20001002 ] ~ [ wine20000909 ] ~ [ wine20000821 ] ~ [ wine20000801 ] ~ [ wine20000716 ] ~ [ wine20000326 ] ~ [ wine20000227 ] ~ [ wine20000130 ] ~ [ wine20000109 ] ~

  1 /*
  2  * String definitions
  3  *
  4  * Derived from the mingw header written by Colin Peters.
  5  * Modified for Wine use by Jon Griffiths and Francois Gouget.
  6  * This file is in the public domain.
  7  */
  8 #ifndef __WINE_STRING_H
  9 #define __WINE_STRING_H
 10 #ifndef __WINE_USE_MSVCRT
 11 #define __WINE_USE_MSVCRT
 12 #endif
 13 
 14 #ifndef _WCHAR_T_DEFINED
 15 #define _WCHAR_T_DEFINED
 16 #ifndef __cplusplus
 17 typedef unsigned short wchar_t;
 18 #endif
 19 #endif
 20 
 21 #if defined(__x86_64__) && !defined(_WIN64)
 22 #define _WIN64
 23 #endif
 24 
 25 #if !defined(_MSC_VER) && !defined(__int64)
 26 # ifdef _WIN64
 27 #   define __int64 long
 28 # else
 29 #   define __int64 long long
 30 # endif
 31 #endif
 32 
 33 #ifndef _SIZE_T_DEFINED
 34 #ifdef _WIN64
 35 typedef unsigned __int64 size_t;
 36 #else
 37 typedef unsigned int size_t;
 38 #endif
 39 #define _SIZE_T_DEFINED
 40 #endif
 41 
 42 #ifndef _NLSCMP_DEFINED
 43 #define _NLSCMPERROR               ((unsigned int)0x7fffffff)
 44 #define _NLSCMP_DEFINED
 45 #endif
 46 
 47 #ifndef NULL
 48 #ifdef __cplusplus
 49 #define NULL  0
 50 #else
 51 #define NULL  ((void *)0)
 52 #endif
 53 #endif
 54 
 55 #ifdef __cplusplus
 56 extern "C" {
 57 #endif
 58 
 59 void*       _memccpy(void*,const void*,int,unsigned int);
 60 int         _memicmp(const void*,const void*,unsigned int);
 61 int         _strcmpi(const char*,const char*);
 62 char*       _strdup(const char*);
 63 char*       _strerror(const char*);
 64 int         _stricmp(const char*,const char*);
 65 int         _stricoll(const char*,const char*);
 66 char*       _strlwr(char*);
 67 int         _strnicmp(const char*,const char*,size_t);
 68 char*       _strnset(char*,int,size_t);
 69 char*       _strrev(char*);
 70 char*       _strset(char*,int);
 71 char*       _strupr(char*);
 72 
 73 void*       memchr(const void*,int,size_t);
 74 int         memcmp(const void*,const void*,size_t);
 75 void*       memcpy(void*,const void*,size_t);
 76 void*       memmove(void*,const void*,size_t);
 77 void*       memset(void*,int,size_t);
 78 char*       strcat(char*,const char*);
 79 char*       strchr(const char*,int);
 80 int         strcmp(const char*,const char*);
 81 int         strcoll(const char*,const char*);
 82 char*       strcpy(char*,const char*);
 83 size_t strcspn(const char*,const char*);
 84 char*       strerror(int);
 85 size_t strlen(const char*);
 86 char*       strncat(char*,const char*,size_t);
 87 int         strncmp(const char*,const char*,size_t);
 88 char*       strncpy(char*,const char*,size_t);
 89 char*       strpbrk(const char*,const char*);
 90 char*       strrchr(const char*,int);
 91 size_t strspn(const char*,const char*);
 92 char*       strstr(const char*,const char*);
 93 char*       strtok(char*,const char*);
 94 size_t strxfrm(char*,const char*,size_t);
 95 
 96 #ifndef _WSTRING_DEFINED
 97 #define _WSTRING_DEFINED
 98 wchar_t*_wcsdup(const wchar_t*);
 99 int             _wcsicmp(const wchar_t*,const wchar_t*);
100 int             _wcsicoll(const wchar_t*,const wchar_t*);
101 wchar_t*_wcslwr(wchar_t*);
102 int             _wcsnicmp(const wchar_t*,const wchar_t*,size_t);
103 wchar_t*_wcsnset(wchar_t*,wchar_t,size_t);
104 wchar_t*_wcsrev(wchar_t*);
105 wchar_t*_wcsset(wchar_t*,wchar_t);
106 wchar_t*_wcsupr(wchar_t*);
107 
108 wchar_t*wcscat(wchar_t*,const wchar_t*);
109 wchar_t*wcschr(const wchar_t*,wchar_t);
110 int             wcscmp(const wchar_t*,const wchar_t*);
111 int             wcscoll(const wchar_t*,const wchar_t*);
112 wchar_t*wcscpy(wchar_t*,const wchar_t*);
113 size_t  wcscspn(const wchar_t*,const wchar_t*);
114 size_t  wcslen(const wchar_t*);
115 wchar_t*wcsncat(wchar_t*,const wchar_t*,size_t);
116 int             wcsncmp(const wchar_t*,const wchar_t*,size_t);
117 wchar_t*wcsncpy(wchar_t*,const wchar_t*,size_t);
118 wchar_t*wcspbrk(const wchar_t*,const wchar_t*);
119 wchar_t*wcsrchr(const wchar_t*,wchar_t wcFor);
120 size_t  wcsspn(const wchar_t*,const wchar_t*);
121 wchar_t*wcsstr(const wchar_t*,const wchar_t*);
122 wchar_t*wcstok(wchar_t*,const wchar_t*);
123 size_t  wcsxfrm(wchar_t*,const wchar_t*,size_t);
124 #endif /* _WSTRING_DEFINED */
125 
126 #ifdef __cplusplus
127 }
128 #endif
129 
130 
131 static inline void* memccpy(void *s1, const void *s2, int c, size_t n) { return _memccpy(s1, s2, c, n); }
132 static inline int memicmp(const void* s1, const void* s2, size_t len) { return _memicmp(s1, s2, len); }
133 static inline int strcasecmp(const char* s1, const char* s2) { return _stricmp(s1, s2); }
134 static inline int strcmpi(const char* s1, const char* s2) { return _strcmpi(s1, s2); }
135 static inline char* strdup(const char* buf) { return _strdup(buf); }
136 static inline int stricmp(const char* s1, const char* s2) { return _stricmp(s1, s2); }
137 static inline int stricoll(const char* s1, const char* s2) { return _stricoll(s1, s2); }
138 static inline char* strlwr(char* str) { return _strlwr(str); }
139 static inline int strncasecmp(const char *str1, const char *str2, size_t n) { return _strnicmp(str1, str2, n); }
140 static inline int strnicmp(const char* s1, const char* s2, size_t n) { return _strnicmp(s1, s2, n); }
141 static inline char* strnset(char* str, int value, unsigned int len) { return _strnset(str, value, len); }
142 static inline char* strrev(char* str) { return _strrev(str); }
143 static inline char* strset(char* str, int value) { return _strset(str, value); }
144 static inline char* strupr(char* str) { return _strupr(str); }
145 
146 static inline wchar_t* wcsdup(const wchar_t* str) { return _wcsdup(str); }
147 static inline int wcsicoll(const wchar_t* str1, const wchar_t* str2) { return _wcsicoll(str1, str2); }
148 static inline wchar_t* wcslwr(wchar_t* str) { return _wcslwr(str); }
149 static inline int wcsnicmp(const wchar_t* str1, const wchar_t* str2, size_t n) { return _wcsnicmp(str1, str2, n); }
150 static inline wchar_t* wcsnset(wchar_t* str, wchar_t c, size_t n) { return _wcsnset(str, c, n); }
151 static inline wchar_t* wcsrev(wchar_t* str) { return _wcsrev(str); }
152 static inline wchar_t* wcsset(wchar_t* str, wchar_t c) { return _wcsset(str, c); }
153 static inline wchar_t* wcsupr(wchar_t* str) { return _wcsupr(str); }
154 
155 #endif /* __WINE_STRING_H */
156 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.