Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenstring.h
Go to the documentation of this file.
00001 00006 #ifndef _INC_STRING 00007 #define _INC_STRING 00008 00009 #include <crtdefs.h> 00010 00011 #ifdef __cplusplus 00012 extern "C" { 00013 #endif 00014 00015 #ifndef _NLSCMP_DEFINED 00016 #define _NLSCMP_DEFINED 00017 #define _NLSCMPERROR 2147483647 00018 #endif 00019 00020 #ifndef NULL 00021 #ifdef __cplusplus 00022 #define NULL 0 00023 #else 00024 #define NULL ((void *)0) 00025 #endif 00026 #endif 00027 00028 #ifndef _CRT_MEMORY_DEFINED 00029 #define _CRT_MEMORY_DEFINED 00030 _CRTIMP void *__cdecl _memccpy(void *_Dst,const void *_Src,int _Val,size_t _MaxCount); 00031 _CRTIMP _CONST_RETURN void *__cdecl memchr(const void *_Buf ,int _Val,size_t _MaxCount); 00032 _CRTIMP int __cdecl _memicmp(const void *_Buf1,const void *_Buf2,size_t _Size); 00033 _CRTIMP int __cdecl _memicmp_l(const void *_Buf1,const void *_Buf2,size_t _Size,_locale_t _Locale); 00034 int __cdecl memcmp(const void *_Buf1,const void *_Buf2,size_t _Size); 00035 _CRT_INSECURE_DEPRECATE_MEMORY(memcpy_s) void *__cdecl memcpy(void *_Dst,const void *_Src,size_t _Size); 00036 void *__cdecl memset(void *_Dst,int _Val,size_t _Size); 00037 #ifndef NO_OLDNAMES 00038 _CRTIMP _CRT_NONSTDC_DEPRECATE(_memccpy) void *__cdecl memccpy(void *_Dst,const void *_Src,int _Val,size_t _Size); 00039 _CRTIMP _CRT_NONSTDC_DEPRECATE(_memicmp) int __cdecl memicmp(const void *_Buf1,const void *_Buf2,size_t _Size); 00040 #endif 00041 #endif 00042 00043 char *__cdecl _strset(char *_Str,int _Val); 00044 char *__cdecl strcpy(char *_Dest,const char *_Source); 00045 char *__cdecl strcat(char *_Dest,const char *_Source); 00046 int __cdecl strcmp(const char *_Str1,const char *_Str2); 00047 size_t __cdecl strlen(const char *_Str); 00048 _CRTIMP size_t __cdecl strnlen(const char *_Str,size_t _MaxCount); 00049 00050 _CRT_INSECURE_DEPRECATE_MEMORY(memmove_s) void *__cdecl memmove(void *_Dst,const void *_Src,size_t _Size); 00051 _CRTIMP char *__cdecl _strdup(const char *_Src); 00052 _CRTIMP _CONST_RETURN char *__cdecl strchr(const char *_Str,int _Val); 00053 _CRTIMP int __cdecl _stricmp(const char *_Str1,const char *_Str2); 00054 _CRTIMP int __cdecl _strcmpi(const char *_Str1,const char *_Str2); 00055 _CRTIMP int __cdecl _stricmp_l(const char *_Str1,const char *_Str2,_locale_t _Locale); 00056 _CRTIMP int __cdecl strcoll(const char *_Str1,const char *_Str2); 00057 _CRTIMP int __cdecl _strcoll_l(const char *_Str1,const char *_Str2,_locale_t _Locale); 00058 _CRTIMP int __cdecl _stricoll(const char *_Str1,const char *_Str2); 00059 _CRTIMP int __cdecl _stricoll_l(const char *_Str1,const char *_Str2,_locale_t _Locale); 00060 _CRTIMP int __cdecl _strncoll (const char *_Str1,const char *_Str2,size_t _MaxCount); 00061 _CRTIMP int __cdecl _strncoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale); 00062 _CRTIMP int __cdecl _strnicoll (const char *_Str1,const char *_Str2,size_t _MaxCount); 00063 _CRTIMP int __cdecl _strnicoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale); 00064 _CRTIMP size_t __cdecl strcspn(const char *_Str,const char *_Control); 00065 _CRTIMP _CRT_INSECURE_DEPRECATE(_strerror_s) char *__cdecl _strerror(const char *_ErrMsg); 00066 _CRTIMP _CRT_INSECURE_DEPRECATE(strerror_s) char *__cdecl strerror(int); 00067 _CRTIMP char *__cdecl _strlwr(char *_String); 00068 char *strlwr_l(char *_String,_locale_t _Locale); 00069 char *__cdecl strncat(char *_Dest,const char *_Source,size_t _Count); 00070 int __cdecl strncmp(const char *_Str1,const char *_Str2,size_t _MaxCount); 00071 _CRTIMP int __cdecl _strnicmp(const char *_Str1,const char *_Str2,size_t _MaxCount); 00072 _CRTIMP int __cdecl _strnicmp_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale); 00073 char *strncpy(char *_Dest,const char *_Source,size_t _Count); 00074 _CRTIMP _CRT_INSECURE_DEPRECATE_CORE(_strnset_s) char *__cdecl _strnset(char *_Str,int _Val,size_t _MaxCount); 00075 _CRTIMP _CONST_RETURN char *__cdecl strpbrk(const char *_Str,const char *_Control); 00076 _CRTIMP _CONST_RETURN char *__cdecl strrchr(const char *_Str,int _Ch); 00077 _CRTIMP char *__cdecl _strrev(char *_Str); 00078 _CRTIMP size_t __cdecl strspn(const char *_Str,const char *_Control); 00079 _CRTIMP _CONST_RETURN char *__cdecl strstr(const char *_Str,const char *_SubStr); 00080 _CRTIMP _CRT_INSECURE_DEPRECATE_CORE(strtok_s) char *__cdecl strtok(char *_Str,const char *_Delim); 00081 _CRTIMP char *__cdecl _strupr(char *_String); 00082 _CRTIMP char *_strupr_l(char *_String,_locale_t _Locale); 00083 _CRTIMP size_t __cdecl strxfrm(char *_Dst,const char *_Src,size_t _MaxCount); 00084 _CRTIMP size_t __cdecl _strxfrm_l(char *_Dst,const char *_Src,size_t _MaxCount,_locale_t _Locale); 00085 #if __STDC_WANT_SECURE_LIB__ 00086 _CRTIMP errno_t __cdecl _strset_s(char *_Dst,size_t _DstSize,int _Value); 00087 _CRTIMP errno_t __cdecl _strerror_s(char *_Buf,size_t _SizeInBytes,const char *_ErrMsg); 00088 _CRTIMP errno_t __cdecl _strlwr_s(char *_Str,size_t _Size); 00089 _CRTIMP errno_t __cdecl _strlwr_s_l(char *_Str,size_t _Size,_locale_t _Locale); 00090 _CRTIMP errno_t __cdecl _strnset_s(char *_Str,size_t _Size,int _Val,size_t _MaxCount); 00091 _CRTIMP errno_t __cdecl _strupr_s(char *_Str,size_t _Size); 00092 _CRTIMP errno_t __cdecl _strupr_s_l(char *_Str,size_t _Size,_locale_t _Locale); 00093 _CRTIMP errno_t __cdecl strcpy_s(char *_Dst, size_t _Size, const char *_Src); 00094 _CRTIMP errno_t __cdecl strcat_s(char *_Dst, size_t _Size, const char *_Src); 00095 #endif 00096 00097 #ifndef NO_OLDNAMES 00098 _CRTIMP _CRT_NONSTDC_DEPRECATE(_strdup) char *__cdecl strdup(const char *_Src); 00099 _CRTIMP _CRT_NONSTDC_DEPRECATE(_strcmpi) int __cdecl strcmpi(const char *_Str1,const char *_Str2); 00100 _CRTIMP _CRT_NONSTDC_DEPRECATE(_stricmp) int __cdecl stricmp(const char *_Str1,const char *_Str2); 00101 _CRTIMP _CRT_NONSTDC_DEPRECATE(_strlwr) char *__cdecl strlwr(char *_Str); 00102 _CRTIMP _CRT_NONSTDC_DEPRECATE(_strnicmp) int __cdecl strnicmp(const char *_Str1,const char *_Str,size_t _MaxCount); 00103 // __CRT_INLINE int __cdecl strncasecmp (const char *__sz1, const char *__sz2, size_t __sizeMaxCompare) { return _strnicmp (__sz1, __sz2, __sizeMaxCompare); } 00104 // __CRT_INLINE int __cdecl strcasecmp (const char *__sz1, const char *__sz2) { return _stricmp (__sz1, __sz2); } 00105 _CRTIMP _CRT_NONSTDC_DEPRECATE(_strnset) char *__cdecl strnset(char *_Str,int _Val,size_t _MaxCount); 00106 _CRTIMP _CRT_NONSTDC_DEPRECATE(_strrev) char *__cdecl strrev(char *_Str); 00107 _CRTIMP _CRT_NONSTDC_DEPRECATE(_strset) char *__cdecl strset(char *_Str,int _Val); 00108 _CRTIMP _CRT_NONSTDC_DEPRECATE(_strupr) char *__cdecl strupr(char *_Str); 00109 #endif 00110 00111 #ifndef _WSTRING_DEFINED 00112 #define _WSTRING_DEFINED 00113 00114 _CRTIMP wchar_t *__cdecl _wcsdup(const wchar_t *_Str); 00115 _CRTIMP _CRT_INSECURE_DEPRECATE(wcsat_s) wchar_t *__cdecl wcscat(wchar_t *_Dest,const wchar_t *_Source); 00116 _CRTIMP _CONST_RETURN wchar_t *__cdecl wcschr(const wchar_t *_Str,wchar_t _Ch); 00117 _CRTIMP int __cdecl wcscmp(const wchar_t *_Str1,const wchar_t *_Str2); 00118 _CRTIMP _CRT_INSECURE_DEPRECATE(wcscpy_s) wchar_t *__cdecl wcscpy(wchar_t *_Dest,const wchar_t *_Source); 00119 _CRTIMP size_t __cdecl wcscspn(const wchar_t *_Str,const wchar_t *_Control); 00120 _CRTIMP wchar_t *wcsncat(wchar_t *_Dest,const wchar_t *_Source,size_t _Count); 00121 _CRTIMP size_t __cdecl wcslen(const wchar_t *_Str); 00122 _CRTIMP _CRT_INSECURE_DEPRECATE(wcsnlen_s) size_t __cdecl wcsnlen(const wchar_t *_Src,size_t _MaxCount); 00123 _CRTIMP int __cdecl wcsncmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); 00124 _CRTIMP _CRT_INSECURE_DEPRECATE(wcsncpy_s) wchar_t *wcsncpy(wchar_t *_Dest,const wchar_t *_Source,size_t _Count); 00125 _CRTIMP _CONST_RETURN wchar_t *__cdecl wcspbrk(const wchar_t *_Str,const wchar_t *_Control); 00126 _CRTIMP _CONST_RETURN wchar_t *__cdecl wcsrchr(const wchar_t *_Str,wchar_t _Ch); 00127 _CRTIMP size_t __cdecl wcsspn(const wchar_t *_Str,const wchar_t *_Control); 00128 _CRTIMP _CONST_RETURN wchar_t *__cdecl wcsstr(const wchar_t *_Str,const wchar_t *_SubStr); 00129 _CRTIMP _CRT_INSECURE_DEPRECATE_CORE(wcstok_s) wchar_t *__cdecl wcstok(wchar_t *_Str,const wchar_t *_Delim); 00130 _CRTIMP _CRT_INSECURE_DEPRECATE(_wcserror_s) wchar_t *__cdecl _wcserror(int _ErrNum); 00131 _CRTIMP _CRT_INSECURE_DEPRECATE(__wcserror_s) wchar_t *__cdecl __wcserror(const wchar_t *_Str); 00132 _CRTIMP int __cdecl _wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2); 00133 _CRTIMP int __cdecl _wcsicmp_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale); 00134 _CRTIMP int __cdecl _wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); 00135 _CRTIMP int __cdecl _wcsnicmp_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale); 00136 _CRTIMP _CRT_INSECURE_DEPRECATE_CORE(_wcsnset_s) wchar_t *__cdecl _wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount); 00137 _CRTIMP wchar_t *__cdecl _wcsrev(wchar_t *_Str); 00138 _CRTIMP _CRT_INSECURE_DEPRECATE_CORE(_wcsset_s) wchar_t *__cdecl _wcsset(wchar_t *_Str,wchar_t _Val); 00139 _CRTIMP wchar_t *__cdecl _wcslwr(wchar_t *_String); 00140 _CRTIMP wchar_t *_wcslwr_l(wchar_t *_String,_locale_t _Locale); 00141 _CRTIMP wchar_t *__cdecl _wcsupr(wchar_t *_String); 00142 _CRTIMP wchar_t *_wcsupr_l(wchar_t *_String,_locale_t _Locale); 00143 _CRTIMP size_t __cdecl wcsxfrm(wchar_t *_Dst,const wchar_t *_Src,size_t _MaxCount); 00144 _CRTIMP size_t __cdecl _wcsxfrm_l(wchar_t *_Dst,const wchar_t *_Src,size_t _MaxCount,_locale_t _Locale); 00145 _CRTIMP int __cdecl wcscoll(const wchar_t *_Str1,const wchar_t *_Str2); 00146 _CRTIMP int __cdecl _wcscoll_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale); 00147 _CRTIMP int __cdecl _wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2); 00148 _CRTIMP int __cdecl _wcsicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale); 00149 _CRTIMP int __cdecl _wcsncoll(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); 00150 _CRTIMP int __cdecl _wcsncoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale); 00151 _CRTIMP int __cdecl _wcsnicoll(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); 00152 _CRTIMP int __cdecl _wcsnicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale); 00153 #if __STDC_WANT_SECURE_LIB__ 00154 _CRTIMP errno_t __cdecl wcsat_s(wchar_t * Dest, size_t SizeInWords, const wchar_t * _Source); 00155 _CRTIMP errno_t __cdecl wcscpy_s(wchar_t * Dest, size_t SizeInWords, const wchar_t * _Source); 00156 _CRTIMP errno_t __cdecl wcsnlen_s(wchar_t **_Src, size_t _MaxCount); 00157 _CRTIMP errno_t __cdecl wcsncpy_s(wchar_t *_Dest, size_t SizeInWords, const wchar_t *_Source ,size_t _Count); 00158 _CRTIMP errno_t __cdecl _wcserror_s(wchar_t *_Buf,size_t _SizeInWords,int _ErrNum); 00159 _CRTIMP errno_t __cdecl __wcserror_s(wchar_t *_Buffer,size_t _SizeInWords,const wchar_t *_ErrMsg); 00160 _CRTIMP errno_t __cdecl _wcsnset_s(wchar_t *_Dst,size_t _DstSizeInWords,wchar_t _Val,size_t _MaxCount); 00161 _CRTIMP errno_t __cdecl _wcsset_s(wchar_t *_Str,size_t _SizeInWords,wchar_t _Val); 00162 _CRTIMP errno_t __cdecl _wcslwr_s(wchar_t *_Str,size_t _SizeInWords); 00163 _CRTIMP errno_t __cdecl _wcslwr_s_l(wchar_t *_Str,size_t _SizeInWords,_locale_t _Locale); 00164 _CRTIMP errno_t __cdecl _wcsupr_s(wchar_t *_Str,size_t _Size); 00165 _CRTIMP errno_t __cdecl _wcsupr_s_l(wchar_t *_Str,size_t _Size,_locale_t _Locale); 00166 #endif 00167 00168 #ifndef NO_OLDNAMES 00169 _CRTIMP _CRT_NONSTDC_DEPRECATE(_wcsdup) wchar_t *__cdecl wcsdup(const wchar_t *_Str); 00170 #define wcswcs wcsstr 00171 _CRTIMP _CRT_NONSTDC_DEPRECATE(_wcsicmp) int __cdecl wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2); 00172 _CRTIMP _CRT_NONSTDC_DEPRECATE(_wcsnicmp) int __cdecl wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); 00173 _CRTIMP _CRT_NONSTDC_DEPRECATE(_wcsnset) wchar_t *__cdecl wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount); 00174 _CRTIMP _CRT_NONSTDC_DEPRECATE(_wcsrev) wchar_t *__cdecl wcsrev(wchar_t *_Str); 00175 _CRTIMP _CRT_NONSTDC_DEPRECATE(_wcsset) wchar_t *__cdecl wcsset(wchar_t *_Str,wchar_t _Val); 00176 _CRTIMP _CRT_NONSTDC_DEPRECATE(_wcslwr) wchar_t *__cdecl wcslwr(wchar_t *_Str); 00177 _CRTIMP _CRT_NONSTDC_DEPRECATE(_wcsupr) wchar_t *__cdecl wcsupr(wchar_t *_Str); 00178 _CRTIMP _CRT_NONSTDC_DEPRECATE(_wcsicoll) int __cdecl wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2); 00179 #endif 00180 00181 #endif /* !_WSTRING_DEFINED */ 00182 00183 #ifdef __cplusplus 00184 } 00185 #endif 00186 00187 // HACK 00188 #define strcasecmp _stricmp 00189 #define strncasecmp _strnicmp 00190 #define stricmp _stricmp 00191 #define wcsicmp _wcsicmp 00192 00193 #endif 00194 Generated on Sat May 26 2012 04:28:25 for ReactOS by
1.7.6.1
|