]> git.saurik.com Git - wxWidgets.git/blob - interface/wx/wxcrt.h
correct macro name
[wxWidgets.git] / interface / wx / wxcrt.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/wxcrt.h
3 // Purpose: interface of global wx wrappers for CRT functions
4 // Author: wxWidgets team
5 // RCS-ID: $Id$
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9
10 /** @addtogroup group_funcmacro_crt */
11 //@{
12
13 bool wxIsEmpty(const char *s);
14 bool wxIsEmpty(const wchar_t *s);
15 bool wxIsEmpty(const wxCharBuffer& s);
16 bool wxIsEmpty(const wxWCharBuffer& s);
17 bool wxIsEmpty(const wxString& s);
18 bool wxIsEmpty(const wxCStrData& s);
19 wxChar* wxTmemchr(const wxChar* s, wxChar c, size_t l);
20 int wxTmemcmp(const wxChar* sz1, const wxChar* sz2, size_t len);
21 wxChar* wxTmemcpy(wxChar* szOut, const wxChar* szIn, size_t len);
22 wxChar* wxTmemmove(wxChar* szOut, const wxChar* szIn, size_t len);
23 wxChar* wxTmemset(wxChar* szOut, const wxChar cIn, size_t len);
24 char* wxTmemchr(const char* s, char c, size_t len);
25 int wxTmemcmp(const char* sz1, const char* sz2, size_t len);
26 char* wxTmemcpy(char* szOut, const char* szIn, size_t len);
27 char* wxTmemmove(char* szOut, const char* szIn, size_t len);
28 char* wxTmemset(char* szOut, const char cIn, size_t len);
29 char* wxSetlocale(int category, const wxCharBuffer& locale);
30 char* wxSetlocale(int category, const wxString& locale);
31 char* wxSetlocale(int category, const wxCStrData& locale);
32 size_t wxStrlen(const wxCharBuffer& s);
33 size_t wxStrlen(const wxWCharBuffer& s);
34 size_t wxStrlen(const wxString& s);
35 size_t wxStrlen(const wxCStrData& s);
36 size_t wxStrnlen(const char *str, size_t maxlen);
37 size_t wxStrnlen(const char *str, size_t maxlen);
38 size_t wxStrnlen(const wchar_t *str, size_t maxlen);
39 size_t wxStrnlen(const wchar_t *str, size_t maxlen);
40 char* wxStrdup(const wxCharBuffer& s);
41 wchar_t* wxStrdup(const wxWCharBuffer& s);
42 char* wxStrdup(const wxString& s);
43 char* wxStrdup(const wxCStrData& s);
44 char *wxStrcpy(char *dest, const char *src);
45 wchar_t *wxStrcpy(wchar_t *dest, const wchar_t *src);
46 char *wxStrcpy(char *dest, const wxString& src);
47 char *wxStrcpy(char *dest, const wxCStrData& src);
48 char *wxStrcpy(char *dest, const wxCharBuffer& src);
49 wchar_t *wxStrcpy(wchar_t *dest, const wxString& src);
50 wchar_t *wxStrcpy(wchar_t *dest, const wxCStrData& src);
51 wchar_t *wxStrcpy(wchar_t *dest, const wxWCharBuffer& src);
52 char *wxStrcpy(char *dest, const wchar_t *src);
53 wchar_t *wxStrcpy(wchar_t *dest, const char *src);
54 char *wxStrncpy(char *dest, const char *src, size_t n);
55 wchar_t *wxStrncpy(wchar_t *dest, const wchar_t *src, size_t n);
56 char *wxStrncpy(char *dest, const wxString& src, size_t n);
57 char *wxStrncpy(char *dest, const wxCStrData& src, size_t n);
58 char *wxStrncpy(char *dest, const wxCharBuffer& src, size_t n);
59 wchar_t *wxStrncpy(wchar_t *dest, const wxString& src, size_t n);
60 wchar_t *wxStrncpy(wchar_t *dest, const wxCStrData& src, size_t n);
61 wchar_t *wxStrncpy(wchar_t *dest, const wxWCharBuffer& src, size_t n);
62 char *wxStrncpy(char *dest, const wchar_t *src, size_t n);
63 wchar_t *wxStrncpy(wchar_t *dest, const char *src, size_t n);
64 size_t wxStrlcpy(char *dest, const char *src, size_t n);
65 size_t wxStrlcpy(wchar_t *dest, const wchar_t *src, size_t n);
66 char *wxStrcat(char *dest, const char *src);
67 wchar_t *wxStrcat(wchar_t *dest, const wchar_t *src);
68 char *wxStrcat(char *dest, const wxString& src);
69 char *wxStrcat(char *dest, const wxCStrData& src);
70 char *wxStrcat(char *dest, const wxCharBuffer& src);
71 wchar_t *wxStrcat(wchar_t *dest, const wxString& src);
72 wchar_t *wxStrcat(wchar_t *dest, const wxCStrData& src);
73 wchar_t *wxStrcat(wchar_t *dest, const wxWCharBuffer& src);
74 char *wxStrcat(char *dest, const wchar_t *src);
75 wchar_t *wxStrcat(wchar_t *dest, const char *src);
76 char *wxStrncat(char *dest, const char *src, size_t n);
77 wchar_t *wxStrncat(wchar_t *dest, const wchar_t *src, size_t n);
78 char *wxStrncat(char *dest, const wxString& src, size_t n);
79 char *wxStrncat(char *dest, const wxCStrData& src, size_t n);
80 char *wxStrncat(char *dest, const wxCharBuffer& src, size_t n);
81 wchar_t *wxStrncat(wchar_t *dest, const wxString& src, size_t n);
82 wchar_t *wxStrncat(wchar_t *dest, const wxCStrData& src, size_t n);
83 wchar_t *wxStrncat(wchar_t *dest, const wxWCharBuffer& src, size_t n);
84 char *wxStrncat(char *dest, const wchar_t *src, size_t n);
85 wchar_t *wxStrncat(wchar_t *dest, const char *src, size_t n);
86 int wxStrcmp_String(const wxString& s1, const T& s2);
87 int wxStricmp_String(const wxString& s1, const T& s2);
88 int wxStrcoll_String(const wxString& s1, const T& s2);;
89 int wxStrcoll_String(const wxString& s1, const T& s2);
90 size_t wxStrspn_String(const wxString& s1, const T& s2);
91 size_t wxStrcspn_String(const wxString& s1, const T& s2);
92 int wxStrncmp_String(const wxString& s1, const T& s2, size_t n);
93 int wxStrnicmp_String(const wxString& s1, const T& s2, size_t n);
94 size_t wxStrxfrm(char *dest, const char *src, size_t n);
95 size_t wxStrxfrm(wchar_t *dest, const wchar_t *src, size_t n);
96 size_t wxStrxfrm(T *dest, const wxCharTypeBuffer<T>& src, size_t n);
97 size_t wxStrxfrm(char *dest, const wxString& src, size_t n);
98 size_t wxStrxfrm(wchar_t *dest, const wxString& src, size_t n);
99 size_t wxStrxfrm(char *dest, const wxCStrData& src, size_t n);
100 size_t wxStrxfrm(wchar_t *dest, const wxCStrData& src, size_t n);
101 char *wxStrtok(char *str, const char *delim, char **saveptr);
102 wchar_t *wxStrtok(wchar_t *str, const wchar_t *delim, wchar_t **saveptr);
103 char *wxStrtok(char *str, const wxCStrData& delim, char **saveptr);
104 wchar_t *wxStrtok(wchar_t *str, const wxCStrData& delim, wchar_t **saveptr);
105 char *wxStrtok(char *str, const wxString& delim, char **saveptr);
106 wchar_t *wxStrtok(wchar_t *str, const wxString& delim, wchar_t **saveptr);
107 const char *wxStrstr(const char *haystack, const char *needle);
108 const wchar_t *wxStrstr(const wchar_t *haystack, const wchar_t *needle);
109 const char *wxStrstr(const char *haystack, const wxString& needle);
110 const wchar_t *wxStrstr(const wchar_t *haystack, const wxString& needle);
111 const char *wxStrstr(const wxString& haystack, const wxString& needle);
112 const char *wxStrstr(const wxCStrData& haystack, const wxString& needle);
113 const char *wxStrstr(const wxCStrData& haystack, const wxCStrData& needle);
114 const char *wxStrstr(const wxString& haystack, const char *needle);
115 const char *wxStrstr(const wxCStrData& haystack, const char *needle);
116 const wchar_t *wxStrstr(const wxString& haystack, const wchar_t *needle);
117 const wchar_t *wxStrstr(const wxCStrData& haystack, const wchar_t *needle);
118 const char *wxStrchr(const char *s, char c);
119 const wchar_t *wxStrchr(const wchar_t *s, wchar_t c);
120 const char *wxStrrchr(const char *s, char c);
121 const wchar_t *wxStrrchr(const wchar_t *s, wchar_t c);
122 const char *wxStrchr(const char *s, const wxUniChar& c);
123 const wchar_t *wxStrchr(const wchar_t *s, const wxUniChar& c);
124 const char *wxStrrchr(const char *s, const wxUniChar& c);
125 const wchar_t *wxStrrchr(const wchar_t *s, const wxUniChar& c);
126 const char *wxStrchr(const char *s, const wxUniCharRef& c);
127 const wchar_t *wxStrchr(const wchar_t *s, const wxUniCharRef& c);
128 const char *wxStrrchr(const char *s, const wxUniCharRef& c);
129 const wchar_t *wxStrrchr(const wchar_t *s, const wxUniCharRef& c);
130 const T* wxStrchr(const wxCharTypeBuffer<T>& s, T c);
131 const T* wxStrrchr(const wxCharTypeBuffer<T>& s, T c);
132 const T* wxStrchr(const wxCharTypeBuffer<T>& s, const wxUniChar& c);
133 const T* wxStrrchr(const wxCharTypeBuffer<T>& s, const wxUniChar& c);
134 const T* wxStrchr(const wxCharTypeBuffer<T>& s, const wxUniCharRef& c);
135 const T* wxStrrchr(const wxCharTypeBuffer<T>& s, const wxUniCharRef& c);
136 const char* wxStrchr(const wxString& s, char c);
137 const char* wxStrrchr(const wxString& s, char c);
138 const char* wxStrchr(const wxString& s, int c);
139 const char* wxStrrchr(const wxString& s, int c);
140 const char* wxStrchr(const wxString& s, const wxUniChar& c);
141 const char* wxStrrchr(const wxString& s, const wxUniChar& c);
142 const char* wxStrchr(const wxString& s, const wxUniCharRef& c);
143 const char* wxStrrchr(const wxString& s, const wxUniCharRef& c);
144 const wchar_t* wxStrchr(const wxString& s, wchar_t c);
145 const wchar_t* wxStrrchr(const wxString& s, wchar_t c);
146 const char* wxStrchr(const wxCStrData& s, char c);
147 const char* wxStrrchr(const wxCStrData& s, char c);
148 const char* wxStrchr(const wxCStrData& s, int c);
149 const char* wxStrrchr(const wxCStrData& s, int c);
150 const char* wxStrchr(const wxCStrData& s, const wxUniChar& c);
151 const char* wxStrrchr(const wxCStrData& s, const wxUniChar& c);
152 const char* wxStrchr(const wxCStrData& s, const wxUniCharRef& c);
153 const char* wxStrrchr(const wxCStrData& s, const wxUniCharRef& c);
154 const wchar_t* wxStrchr(const wxCStrData& s, wchar_t c);
155 const wchar_t* wxStrrchr(const wxCStrData& s, wchar_t c);
156 const char *wxStrpbrk(const char *s, const char *accept);
157 const wchar_t *wxStrpbrk(const wchar_t *s, const wchar_t *accept);
158 const char *wxStrpbrk(const char *s, const wxString& accept);
159 const char *wxStrpbrk(const char *s, const wxCStrData& accept);
160 const wchar_t *wxStrpbrk(const wchar_t *s, const wxString& accept);
161 const wchar_t *wxStrpbrk(const wchar_t *s, const wxCStrData& accept);
162 const char *wxStrpbrk(const wxString& s, const wxString& accept);
163 const char *wxStrpbrk(const wxString& s, const char *accept);
164 const wchar_t *wxStrpbrk(const wxString& s, const wchar_t *accept);
165 const char *wxStrpbrk(const wxString& s, const wxCStrData& accept);
166 const char *wxStrpbrk(const wxCStrData& s, const wxString& accept);
167 const char *wxStrpbrk(const wxCStrData& s, const char *accept);
168 const wchar_t *wxStrpbrk(const wxCStrData& s, const wchar_t *accept);
169 const char *wxStrpbrk(const wxCStrData& s, const wxCStrData& accept);
170 const T *wxStrpbrk(const S& s, const wxCharTypeBuffer<T>& accept);
171 /* inlined non-const versions */;
172 char *wxStrstr(char *haystack, const char *needle);
173 wchar_t *wxStrstr(wchar_t *haystack, const wchar_t *needle);
174 char *wxStrstr(char *haystack, const wxString& needle);
175 wchar_t *wxStrstr(wchar_t *haystack, const wxString& needle);
176 char * wxStrchr(char *s, char c);
177 char * wxStrrchr(char *s, char c);
178 wchar_t * wxStrchr(wchar_t *s, wchar_t c);
179 wchar_t * wxStrrchr(wchar_t *s, wchar_t c);
180 char * wxStrpbrk(char *s, const char *accept);
181 wchar_t * wxStrpbrk(wchar_t *s, const wchar_t *accept);
182 char * wxStrpbrk(char *s, const wxString& accept);
183 wchar_t * wxStrpbrk(wchar_t *s, const wxString& accept);
184 FILE *wxFopen(const wxString& path, const wxString& mode);
185 FILE *wxFreopen(const wxString& path, const wxString& mode, FILE *stream);
186 int wxRemove(const wxString& path);
187 int wxRename(const wxString& oldpath, const wxString& newpath);
188 char *wxFgets(char *s, int size, FILE *stream);
189 int wxFgetc(FILE *stream);
190 int wxUngetc(int c, FILE *stream);
191 int wxAtoi(const wxString& str);
192 int wxAtoi(const wxString& str);
193 long wxAtol(const wxString& str);
194 long wxAtol(const wxString& str);
195 double wxAtof(const wxString& str);
196 double wxAtof(const wxString& str);
197 double wxStrtod(const char *nptr, char **endptr);
198 double wxStrtod(const wchar_t *nptr, wchar_t **endptr);
199 double wxStrtod(const wxCharTypeBuffer<T>& nptr, T **endptr);
200 double wxStrtod(const wxString& nptr, T endptr);
201 double wxStrtod(const wxCStrData& nptr, T endptr);
202 int wxSystem(const wxString& str);
203 int wxSystem(const wxString& str);
204 char* wxGetenv(const char *name);
205 wchar_t* wxGetenv(const wchar_t *name);
206 char* wxGetenv(const wxString& name);
207 char* wxGetenv(const wxCStrData& name);
208 char* wxGetenv(const wxCharBuffer& name);
209 wchar_t* wxGetenv(const wxWCharBuffer& name);
210 size_t wxStrftime(char *s, size_t max, size_t max, const wxString& format, const struct tm *tm);
211 size_t wxStrftime(wchar_t *s, size_t max, size_t max, const wxString& format, const struct tm *tm);
212 bool wxIsalnum(const wxUniChar& c) ;
213 bool wxIsalpha(const wxUniChar& c) ;
214 bool wxIscntrl(const wxUniChar& c) ;
215 bool wxIsdigit(const wxUniChar& c) ;
216 bool wxIsgraph(const wxUniChar& c) ;
217 bool wxIslower(const wxUniChar& c) ;
218 bool wxIsprint(const wxUniChar& c) ;
219 bool wxIspunct(const wxUniChar& c) ;
220 bool wxIsspace(const wxUniChar& c) ;
221 bool wxIsupper(const wxUniChar& c) ;
222 bool wxIsxdigit(const wxUniChar& c);
223 wxUniChar wxTolower(const wxUniChar& c);
224 wxUniChar wxToupper(const wxUniChar& c);
225 int wxIsctrl(const wxUniChar& c);
226
227 //@}