]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/wxchar.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Declarations common to wx char/wchar_t usage (wide chars)
8 // Copyright: (c) wxWindows copyright
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 //#pragma interface "wxchar.h"
19 // only do SBCS or _UNICODE
21 # error "MBCS is not supported by wxChar"
24 // set wxUSE_UNICODE to 1 if UNICODE or _UNICODE is defined
25 #if defined(_UNICODE) || defined(UNICODE)
27 # define wxUSE_UNICODE 1
29 # ifndef wxUSE_UNICODE
30 # define wxUSE_UNICODE 0
34 // and vice versa: define UNICODE and _UNICODE if wxUSE_UNICODE is 1...
44 // Windows (VC++) has broad TCHAR support
45 #if defined(__VISUALC__) && defined(__WIN32__)
47 # define HAVE_WCSLEN 1
51 # if wxUSE_UNICODE // temporary - preserve binary compatibility
52 typedef _TCHAR wxChar
;
53 typedef _TSCHAR wxSChar
;
54 typedef _TUCHAR wxUChar
;
57 # define wxSChar signed char
58 # define wxUChar unsigned char
60 // wchar_t is available
62 # define wxUSE_WCHAR_T 1
65 # define wxIsalnum _istalnum
66 # define wxIsalpha _istalpha
67 # define wxIsctrl _istctrl
68 # define wxIsdigit _istdigit
69 # define wxIsgraph _istgraph
70 # define wxIslower _istlower
71 # define wxIsprint _istprint
72 # define wxIspunct _istpunct
73 # define wxIsspace _istspace
74 # define wxIsupper _istupper
75 # define wxIsxdigit _istxdigit
76 # define wxTolower _totlower
77 # define wxToupper _totupper
80 # define wxSetlocale _tsetlocale
83 # define wxStrcat _tcscat
84 # define wxStrchr _tcschr
85 # define wxStrcmp _tcscmp
86 # define wxStrcoll _tcscoll
87 # define wxStrcpy _tcscpy
88 # define wxStrcspn _tcscspn
89 # define wxStrftime _tcsftime
90 # define wxStricmp _tcsicmp
91 # define wxStrlen_ _tcslen // used in wxStrlen inline function
92 # define wxStrncat _tcsncat
93 # define wxStrncmp _tcsncmp
94 # define wxStrncpy _tcsncpy
95 # define wxStrpbrk _tcspbrk
96 # define wxStrrchr _tcsrchr
97 # define wxStrspn _tcsspn
98 # define wxStrstr _tcsstr
99 # define wxStrtod _tcstod
100 // is there a _tcstok[_r] ?
101 # define wxStrtol _tcstol
102 # define wxStrtoul _tcstoul
103 # define wxStrxfrm _tcsxfrm
106 # define wxFgetc _fgettc
107 # define wxFgetchar _fgettchar
108 # define wxFgets _fgetts
109 # define wxFopen _tfopen
110 # define wxFputc _fputtc
111 # define wxFputchar _fputtchar
112 # define wxFprintf _ftprintf
113 # define wxFreopen _tfreopen
114 # define wxFscanf _ftscanf
115 # define wxGetc _gettc
116 # define wxGetchar _gettchar
117 # define wxGets _getts
118 # define wxPerror _tperror
119 # define wxPrintf _tprintf
120 # define wxPutc _puttc
121 # define wxPutchar _puttchar
122 # define wxPuts _putts
123 # define wxRemove _tremove
124 # define wxRename _trename
125 # define wxScanf _tscanf
126 # define wxSprintf _stprintf
127 # define wxSscanf _stscanf
128 # define wxTmpnam _ttmpnam
129 # define wxUngetc _tungetc
130 # define wxVfprint _vftprintf
131 # define wxVprintf _vtprintf
132 # define wxVsscanf _vstscanf
133 # define wxVsprintf _vstprintf
135 // stdlib.h functions
139 # define wxAtoi _ttoi
140 # define wxAtol _ttol
141 # define wxGetenv _tgetenv
142 # define wxSystem _tsystem
145 # define wxAsctime _tasctime
146 # define wxCtime _tctime
148 // #elif defined(XXX)
149 // #include XXX-specific files here
150 // typeddef YYY wxChar;
152 // translate wxZZZ names
154 #elif defined(__BORLANDC__) && defined(__WIN32__)
155 #if (__BORLANDC__ >= 0x520)
156 // BC++ 5.02 and later has broad tchar support
157 # define HAVE_WCSLEN 1
161 # if wxUSE_UNICODE // temporary - preserve binary compatibility
162 typedef _TCHAR wxChar
;
163 typedef _TSCHAR wxSChar
;
164 typedef _TUCHAR wxUChar
;
167 # define wxSChar signed char
168 # define wxUChar unsigned char
170 // wchar_t is available
171 # undef wxUSE_WCHAR_T
172 # define wxUSE_WCHAR_T 1
175 # define wxIsalnum _istalnum
176 # define wxIsalpha _istalpha
177 # define wxIsctrl _istcntrl
178 # define wxIsdigit _istdigit
179 # define wxIsgraph _istgraph
180 # define wxIslower _istlower
181 # define wxIsprint _istprint
182 # define wxIspunct _istpunct
183 # define wxIsspace _istspace
184 # define wxIsupper _istupper
185 # define wxIsxdigit _istxdigit
186 # define wxTolower _totlower
187 # define wxToupper _totupper
190 # define wxSetlocale _tsetlocale
192 // string.h functions
193 # define wxStrcat _tcscat
194 # define wxStrchr _tcschr
195 # define wxStrcmp _tcscmp
196 # define wxStrcoll _tcscoll
197 # define wxStrcpy _tcscpy
198 # define wxStrcspn _tcscspn
199 # define wxStrftime _tcsftime
200 # define wxStricmp _tcsicmp
201 # define wxStrlen_ _tcslen // used in wxStrlen inline function
202 # define wxStrncat _tcsncat
203 # define wxStrncmp _tcsncmp
204 # define wxStrncpy _tcsncpy
205 # define wxStrpbrk _tcspbrk
206 # define wxStrrchr _tcsrchr
207 # define wxStrspn _tcsspn
208 # define wxStrstr _tcsstr
209 # define wxStrtod _tcstod
210 // is there a _tcstok[_r] ?
211 # define wxStrtol _tcstol
212 # define wxStrtoul _tcstoul
213 # define wxStrxfrm _tcsxfrm
216 # define wxFgetc _fgettc
217 # define wxFgetchar _fgettchar
218 # define wxFgets _fgetts
219 # define wxFopen _tfopen
220 # define wxFputc _fputtc
221 # define wxFputchar _fputtchar
222 # define wxFprintf _ftprintf
223 # define wxFreopen _tfreopen
224 # define wxFscanf _ftscanf
225 # define wxGetc _gettc
226 # define wxGetchar _gettchar
227 # define wxGets _getts
228 # define wxPerror _tperror
229 # define wxPrintf _tprintf
230 # define wxPutc _puttc
231 # define wxPutchar _puttchar
232 # define wxPuts _putts
233 # define wxRemove _tremove
234 # define wxRename _trename
235 # define wxScanf _tscanf
236 # define wxSprintf _stprintf
237 # define wxSscanf _stscanf
238 # define wxTmpnam _ttmpnam
239 # define wxUngetc _ungettc
240 # define wxVfprint _vftprintf
241 # define wxVprintf _vtprintf
242 # define wxVsscanf _vstscanf
243 # define wxVsprintf _vstprintf
245 // stdlib.h functions
246 # define wxAtof _ttof
247 # define wxAtoi _ttoi
248 # define wxAtol _ttol
249 # define wxGetenv _tgetenv
250 # define wxSystem _tsystem
253 # define wxAsctime _tasctime
254 # define wxCtime _tctime
256 // #elif defined(XXX)
257 // #include XXX-specific files here
258 // typeddef YYY wxChar;
260 // translate wxZZZ names
263 // Borland C++ 4.52 doesn't have much tchar support
264 // maybe Borland C++ 5.02 has, can't check right now
265 // but I'll use the Win32 API instead here
268 # if wxUSE_UNICODE // temporary - preserve binary compatibility
269 typedef _TCHAR wxChar
;
270 typedef _TSCHAR wxSChar
;
271 typedef _TUCHAR wxUChar
;
274 # define wxSChar signed char
275 # define wxUChar unsigned char
277 // wchar_t is available
278 # undef wxUSE_WCHAR_T
279 // This test is for C++Builder
280 # define wxUSE_WCHAR_T 1
281 # define wxNEED_WCSLEN
282 # define wxNEED_WX_CTYPE_H
283 // #define wxStrtok strtok_r // Borland C++ 4.52 doesn't have strtok_r
284 # define wxNEED_WX_STRING_H
285 # define wxNEED_WX_STDIO_H
286 # define wxNEED_WX_STDLIB_H
287 # define wxNEED_WX_TIME_H
289 #endif // __BORLANDC__ >= 0x530
291 // VisualAge C++ V4.0 has broad tchar support
292 #elif defined(__VISAGECPP__) && __IBMCPP__ >= 400
294 # define HAVE_WCSLEN 1
298 # if wxUSE_UNICODE // temporary - preserve binary compatibility
299 typedef _TCHAR wxChar
;
300 typedef _TSCHAR wxSChar
;
301 typedef _TUCHAR wxUChar
;
304 # define wxSChar signed char
305 # define wxUChar unsigned char
307 // wchar_t is available
308 # undef wxUSE_WCHAR_T
309 # define wxUSE_WCHAR_T 1
312 # define wxIsalnum _istalnum
313 # define wxIsalpha _istalpha
314 # define wxIsctrl _istcntrl
315 # define wxIsdigit _istdigit
316 # define wxIsgraph _istgraph
317 # define wxIslower _istlower
318 # define wxIsprint _istprint
319 # define wxIspunct _istpunct
320 # define wxIsspace _istspace
321 # define wxIsupper _istupper
322 # define wxIsxdigit _istxdigit
323 # define wxTolower _totlower
324 # define wxToupper _totupper
326 // locale.h functons -- not defined in tchar.h
327 # define wxSetlocale setlocale
329 // string.h functions
330 # define wxStrcat _tcscat
331 # define wxStrchr _tcschr
332 # define wxStrcmp _tcscmp
333 # define wxStrcoll _tcscoll
334 # define wxStrcpy _tcscpy
335 # define wxStrcspn _tcscspn
336 # define wxStrftime _tcsftime
337 # define wxStricmp _tcsicmp
338 # define wxStrlen_ _tcslen // used in wxStrlen inline function
339 # define wxStrncat _tcsncat
340 # define wxStrncmp _tcsncmp
341 # define wxStrncpy _tcsncpy
342 # define wxStrpbrk _tcspbrk
343 # define wxStrrchr _tcsrchr
344 # define wxStrspn _tcsspn
345 # define wxStrstr _tcsstr
346 # define wxStrtod _tcstod
347 // is there a _tcstok[_r] ?
348 # define wxStrtol _tcstol
349 # define wxStrtoul _tcstoul
350 # define wxStrxfrm _tcsxfrm
353 # define wxFgetc _fgettc
354 # define wxFgets _fgetts
355 # define wxFputc _fputtc
356 # define wxFprintf _ftprintf
357 # define wxFscanf _ftscanf
358 # define wxGetc _gettc
359 # define wxGetchar _gettchar
360 # define wxPrintf _tprintf
361 # define wxPutc _puttc
362 # define wxPutchar _puttchar
363 # define wxScanf _tscanf
364 # define wxSprintf _stprintf
365 # define wxSscanf _stscanf
366 # define wxVfprint _vftprintf
367 # define wxVprintf _vtprintf
368 # define wxVsprintf _vstprintf
369 // not defined in tchar.h
370 # define wxFgetchar fgetchar
371 # define wxFopen fopen
372 # define wxFputchar fputchar
373 # define wxFreopen freopen
375 # define wxPerror perror
377 # define wxRemove remove
378 # define wxRename rename
379 # define wxTmpnam tmpnam
380 # define wxUngetc ungetc
381 # define wxVsscanf vsscanf
383 // stdlib.h functions -- none defined in tchar.h
389 # define wxGetenv getenv
390 # define wxSystem system
392 // time.h functions -- none defined in tchar.h
393 # define wxAsctime asctime
394 # define wxCtime ctime
396 // #elif defined(XXX)
397 // #include XXX-specific files here
398 // typeddef YYY wxChar;
400 // translate wxZZZ names
402 #else//!TCHAR-aware compilers
404 // check whether we should include wchar.h or equivalent
406 # undef wxUSE_WCHAR_T
407 # define wxUSE_WCHAR_T 1 // wchar_t *must* be available in Unicode mode
408 # elif !defined(wxUSE_WCHAR_T)
409 # if defined(__VISUALC__) && (__VISUALC__ < 900)
410 # define wxUSE_WCHAR_T 0 // wchar_t is not available for MSVC++ 1.5
411 # elif defined(__UNIX__)
412 # if defined(HAVE_WCSTR_H) || defined(HAVE_WCHAR_H) || defined(__FreeBSD__)
413 # define wxUSE_WCHAR_T 1
415 # define wxUSE_WCHAR_T 0
417 # elif defined(__GNUWIN32__) && !defined(__MINGW32__) // Cygwin (not Mingw32) doesn't have wcslen.h, needed in buffer.h
418 # define wxUSE_WCHAR_T 0
419 # elif defined(__BORLANDC__) // WIN16 BC++
420 # define wxUSE_WCHAR_T 0
421 # elif defined(__WATCOMC__)
422 # define wxUSE_WCHAR_T 0
424 // add additional compiler checks if this fails
425 # define wxUSE_WCHAR_T 1
427 # endif//wxUSE_UNICODE
437 # define wxNEED_WCSLEN
442 // check whether we are doing Unicode
447 // this is probably glibc-specific
448 # if defined(__WCHAR_TYPE__)
450 typedef __WCHAR_TYPE__ wxChar
;
451 typedef signed __WCHAR_TYPE__ wxSChar
;
452 typedef unsigned __WCHAR_TYPE__ wxUChar
;
456 // ctype.h functions (wctype.h)
457 # define wxIsalnum iswalnum
458 # define wxIsalpha iswalpha
459 # define wxIsctrl iswcntrl
460 # define wxIsdigit iswdigit
461 # define wxIsgraph iswgraph
462 # define wxIslower iswlower
463 # define wxIsprint iswprint
464 # define wxIspunct iswpunct
465 # define wxIsspace iswspace
466 # define wxIsupper iswupper
467 # define wxIsxdigit iswxdigit
469 # if defined(__GLIBC__) && (__GLIBC__ == 2) && (__GLIBC_MINOR__ == 0)
470 // /usr/include/wctype.h incorrectly declares translations tables which
471 // provokes tons of compile-time warnings - try to correct this
472 # define wxTolower(wc) towctrans((wc), (wctrans_t)__ctype_tolower)
473 # define wxToupper(wc) towctrans((wc), (wctrans_t)__ctype_toupper)
475 # define wxTolower towlower
476 # define wxToupper towupper
479 // string.h functions (wchar.h)
480 # define wxStrcat wcscat
481 # define wxStrchr wcschr
482 # define wxStrcmp wcscmp
483 # define wxStrcoll wcscoll
484 # define wxStrcpy wcscpy
485 # define wxStrcspn wcscspn
486 # define wxStrlen_ wcslen // used in wxStrlen inline function
487 # define wxStrncat wcsncat
488 # define wxStrncmp wcsncmp
489 # define wxStrncpy wcsncpy
490 # define wxStrpbrk wcspbrk
491 # define wxStrrchr wcsrchr
492 # define wxStrspn wcsspn
493 # define wxStrstr wcsstr
494 # define wxStrtod wcstod
495 # define wxStrtok wcstok
496 # define wxStrtol wcstol
497 # define wxStrtoul wcstoul
498 # define wxStrxfrm wcsxfrm
500 // glibc doesn't have wc equivalents of the other stuff
501 # define wxNEED_WX_STDIO_H
502 # define wxNEED_WX_STDLIB_H
503 # define wxNEED_WX_TIME_H
506 # error "Please define your compiler's Unicode conventions in wxChar.h"
513 # if 0 // temporary - preserve binary compatibilty
515 typedef signed char wxSChar
;
516 typedef unsigned char wxUChar
;
519 # define wxSChar signed char
520 # define wxUChar unsigned char
527 # if !defined(__MINGW32__) || !defined(_T)
532 # define wxIsalnum isalnum
533 # define wxIsalpha isalpha
534 # define wxIsctrl isctrl
535 # define wxIsdigit isdigit
536 # define wxIsgraph isgraph
537 # define wxIslower islower
538 # define wxIsprint isprint
539 # define wxIspunct ispunct
540 # define wxIsspace isspace
541 # define wxIsupper isupper
542 # define wxIsxdigit isxdigit
543 # define wxTolower tolower
544 # define wxToupper toupper
547 # define wxSetlocale setlocale
549 // string.h functions
550 // #define wxStricmp strcasecmp
551 // wxStricmp is defined below!!
554 #define wxStrtok(str, sep, last) strtok_r(str, sep, last)
556 #define wxStrtok(str, sep, last) strtok(str, sep)
559 // leave the rest to defaults below
560 # define wxNEED_WX_STRING_H
561 # define wxNEED_WX_STDIO_H
562 # define wxNEED_WX_STDLIB_H
563 # define wxNEED_WX_TIME_H
566 #endif//TCHAR-aware compilers
568 // define wxStricmp for various compilers without Unicode possibilities
569 #if !defined(wxStricmp) && !wxUSE_UNICODE
570 # if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__SALFORDC__) || defined(__VISAGECPP__) || defined(__EMX__)
571 # define wxStricmp stricmp
572 # define wxStrnicmp strnicmp
573 # elif defined(__SC__) || defined(__VISUALC__) || (defined(__MWERKS__) && defined(__INTEL__))
574 # define wxStricmp _stricmp
575 # define wxStrnicmp _strnicmp
576 # elif defined(__UNIX__) || defined(__GNUWIN32__)
577 # define wxStricmp strcasecmp
578 # define wxStrnicmp strncasecmp
579 # elif defined(__MWERKS__) && !defined(__INTEL__)
580 // use wxWindows' implementation
582 // if you leave wxStricmp undefined, wxWindows' implementation will be used
583 # error "Please define string case-insensitive compare for your OS/compiler"
587 // if we need to define for standard headers, and we're not using Unicode,
588 // just define to standard C library routines
590 # ifdef wxNEED_WX_STRING_H
591 # define wxStrcat strcat
592 # define wxStrchr strchr
593 # define wxStrcmp strcmp
594 # define wxStrcoll strcoll
595 # define wxStrcpy strcpy
596 # define wxStrcspn strcspn
597 # define wxStrdup strdup
598 # define wxStrlen_ strlen // used in wxStrlen inline function
599 # define wxStrncat strncat
600 # define wxStrncmp strncmp
601 # define wxStrncpy strncpy
602 # define wxStrpbrk strpbrk
603 # define wxStrrchr strrchr
604 # define wxStrspn strspn
605 # define wxStrstr strstr
606 # define wxStrtod strtod
607 # define wxStrtol strtol
608 # define wxStrtoul strtoul
609 # define wxStrxfrm strxfrm
610 # undef wxNEED_WX_STRING_H
613 # ifdef wxNEED_WX_STDIO_H
614 # define wxFgetc fgetc
615 # define wxFgetchar fgetchar
616 # define wxFgets fgets
617 # define wxFopen fopen
618 # define wxFputc fputc
619 # define wxFputchar fputchar
620 # define wxFprintf fprintf
621 # define wxFreopen freopen
622 # define wxFscanf fscanf
624 # define wxGetchar getchar
626 # define wxPerror perror
627 # define wxPrintf printf
629 # define wxPutchar putchar
631 # define wxRemove remove
632 # define wxRename rename
633 # define wxScanf scanf
634 # define wxSprintf sprintf
635 # define wxSscanf sscanf
636 # define wxTmpnam tmpnam
637 # define wxUngetc ungetc
638 # define wxVfprint vfprintf
639 # define wxVprintf vprintf
640 # define wxVsscanf vsscanf
641 # define wxVsprintf vsprintf
642 # undef wxNEED_WX_STDIO_H
645 # ifdef wxNEED_WX_STDLIB_H
649 # define wxGetenv getenv
650 # define wxSystem system
651 # undef wxNEED_WX_STDLIB_H
654 # ifdef wxNEED_WX_TIME_H
655 # define wxAsctime asctime
656 # define wxCtime ctime
657 # define wxStrftime strftime
658 # undef wxNEED_WX_TIME_H
662 #if defined(wxNEED_WCSLEN) && wxUSE_UNICODE
663 # define wcslen wxStrlen
664 # undef wxNEED_WCSLEN
667 /// checks whether the passed in pointer is NULL and if the string is empty
668 WXDLLEXPORT
inline bool wxIsEmpty(const wxChar
*p
) { return !p
|| !*p
; }
670 #ifndef wxNEED_WX_STRING_H
671 /// safe version of strlen() (returns 0 if passed NULL pointer)
672 WXDLLEXPORT
inline size_t wxStrlen(const wxChar
*psz
)
673 { return psz
? wxStrlen_(psz
) : 0; }
677 // multibyte<->widechar conversion
678 WXDLLEXPORT
size_t wxMB2WC(wchar_t *buf
, const char *psz
, size_t n
);
679 WXDLLEXPORT
size_t wxWC2MB(char *buf
, const wchar_t *psz
, size_t n
);
681 # define wxMB2WX wxMB2WC
682 # define wxWX2MB wxWC2MB
683 # define wxWC2WX wxStrncpy
684 # define wxWX2WC wxStrncpy
686 # define wxMB2WX wxStrncpy
687 # define wxWX2MB wxStrncpy
688 # define wxWC2WX wxWC2MB
689 # define wxWX2WC wxMB2WC
692 // No wxUSE_WCHAR_T: we have to do something (JACS)
693 # define wxMB2WC wxStrncpy
694 # define wxWC2MB wxStrncpy
695 # define wxMB2WX wxStrncpy
696 # define wxWX2MB wxStrncpy
697 # define wxWC2WX wxWC2MB
698 # define wxWX2WC wxMB2WC
701 WXDLLEXPORT
bool wxOKlibc(); // for internal use
703 // if libc versions are not available, use replacements defined in wxchar.cpp
705 WXDLLEXPORT wxChar
* wxStrdup(const wxChar
*psz
);
709 WXDLLEXPORT
int wxStricmp(const wxChar
*psz1
, const wxChar
*psz2
);
713 WXDLLEXPORT wxChar
* wxStrtok(wxChar
*psz
, const wxChar
*delim
, wxChar
**save_ptr
);
717 WXDLLEXPORT wxChar
* wxSetlocale(int category
, const wxChar
*locale
);
720 #ifdef wxNEED_WCSLEN // for use in buffer.h
721 WXDLLEXPORT
size_t wcslen(const wchar_t *s
);
724 #ifdef wxNEED_WX_CTYPE_H
725 WXDLLEXPORT
int wxIsalnum(wxChar ch
);
726 WXDLLEXPORT
int wxIsalpha(wxChar ch
);
727 WXDLLEXPORT
int wxIsctrl(wxChar ch
);
728 WXDLLEXPORT
int wxIsdigit(wxChar ch
);
729 WXDLLEXPORT
int wxIsgraph(wxChar ch
);
730 WXDLLEXPORT
int wxIslower(wxChar ch
);
731 WXDLLEXPORT
int wxIsprint(wxChar ch
);
732 WXDLLEXPORT
int wxIspunct(wxChar ch
);
733 WXDLLEXPORT
int wxIsspace(wxChar ch
);
734 WXDLLEXPORT
int wxIsupper(wxChar ch
);
735 WXDLLEXPORT
int wxIsxdigit(wxChar ch
);
736 WXDLLEXPORT
int wxTolower(wxChar ch
);
737 WXDLLEXPORT
int wxToupper(wxChar ch
);
740 #ifdef wxNEED_WX_STRING_H
741 WXDLLEXPORT wxChar
* wxStrcat(wxChar
*dest
, const wxChar
*src
);
742 WXDLLEXPORT wxChar
* wxStrchr(const wxChar
*s
, wxChar c
);
743 WXDLLEXPORT
int wxStrcmp(const wxChar
*s1
, const wxChar
*s2
);
744 WXDLLEXPORT
int wxStrcoll(const wxChar
*s1
, const wxChar
*s2
);
745 WXDLLEXPORT wxChar
* wxStrcpy(wxChar
*dest
, const wxChar
*src
);
746 WXDLLEXPORT
size_t wxStrcspn(const wxChar
*s
, const wxChar
*reject
);
747 WXDLLEXPORT
size_t wxStrlen(const wxChar
*s
);
748 WXDLLEXPORT wxChar
* wxStrncat(wxChar
*dest
, const wxChar
*src
, size_t n
);
749 WXDLLEXPORT
int wxStrncmp(const wxChar
*s1
, const wxChar
*s2
, size_t n
);
750 WXDLLEXPORT wxChar
* wxStrncpy(wxChar
*dest
, const wxChar
*src
, size_t n
);
751 WXDLLEXPORT wxChar
* wxStrpbrk(const wxChar
*s
, const wxChar
*accept
);
752 WXDLLEXPORT wxChar
* wxStrrchr(const wxChar
*s
, wxChar c
);
753 WXDLLEXPORT
size_t wxStrspn(const wxChar
*s
, const wxChar
*accept
);
754 WXDLLEXPORT wxChar
* wxStrstr(const wxChar
*haystack
, const wxChar
*needle
);
755 WXDLLEXPORT
double wxStrtod(const wxChar
*nptr
, wxChar
**endptr
);
756 WXDLLEXPORT
long int wxStrtol(const wxChar
*nptr
, wxChar
**endptr
, int base
);
757 WXDLLEXPORT
unsigned long int wxStrtoul(const wxChar
*nptr
, wxChar
**endptr
, int base
);
758 WXDLLEXPORT
size_t wxStrxfrm(wxChar
*dest
, const wxChar
*src
, size_t n
);
761 #ifdef wxNEED_WX_STDIO_H
764 WXDLLEXPORT
FILE * wxFopen(const wxChar
*path
, const wxChar
*mode
);
765 WXDLLEXPORT
FILE * wxFreopen(const wxChar
*path
, const wxChar
*mode
, FILE *stream
);
766 WXDLLEXPORT
int wxPrintf(const wxChar
*fmt
, ...);
767 WXDLLEXPORT
int wxVprintf(const wxChar
*fmt
, va_list argptr
);
768 WXDLLEXPORT
int wxFprintf(FILE *stream
, const wxChar
*fmt
, ...);
769 WXDLLEXPORT
int wxVfprintf(FILE *stream
, const wxChar
*fmt
, va_list argptr
);
770 WXDLLEXPORT
int wxSprintf(wxChar
*buf
, const wxChar
*fmt
, ...);
771 WXDLLEXPORT
int wxVsprintf(wxChar
*buf
, const wxChar
*fmt
, va_list argptr
);
772 WXDLLEXPORT
int wxSscanf(const wxChar
*buf
, const wxChar
*fmt
, ...);
773 WXDLLEXPORT
int wxVsscanf(const wxChar
*buf
, const wxChar
*fmt
, va_list argptr
);
777 WXDLLEXPORT
double wxAtof(const wxChar
*psz
);
780 #ifdef wxNEED_WX_STDLIB_H
781 WXDLLEXPORT
int wxAtoi(const wxChar
*psz
);
782 WXDLLEXPORT
long wxAtol(const wxChar
*psz
);
783 WXDLLEXPORT wxChar
* wxGetenv(const wxChar
*name
);
784 WXDLLEXPORT
int wxSystem(const wxChar
*psz
);
787 #ifdef wxNEED_WX_TIME_H
788 WXDLLEXPORT
size_t wxStrftime(wxChar
*s
, size_t max
, const wxChar
*fmt
, const struct tm
*tm
);
791 // although global macros with such names are really bad, we want to have
792 // another name for _T() which should be used to avoid confusion between _T()
793 // and _() in wxWindows sources
796 // a Unicode-friendly __FILE__ analog
798 #define __XFILE__(x) wxT(x)
799 #define __TFILE__ __XFILE__(__FILE__)