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