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