]> git.saurik.com Git - wxWidgets.git/blame - interface/chartype.h
regenerated headers to remove @seealso in favour of @see; fixed links to global funct...
[wxWidgets.git] / interface / chartype.h
CommitLineData
23324ae1 1/////////////////////////////////////////////////////////////////////////////
7c913512 2// Name: chartype.h
e54c96f1 3// Purpose: interface of global functions
7c913512
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9//@{
23324ae1
FM
10/**
11 wxT() is a macro which can be used with character and string literals (in other
12 words, @c 'x' or @c "foo") to automatically convert them to Unicode in
13 Unicode build configuration. Please see the
14 @ref overview_unicode "Unicode overview" for more information.
23324ae1
FM
15 This macro is simply returns the value passed to it without changes in ASCII
16 build. In fact, its definition is:
7c913512 17
23324ae1
FM
18 @code
19 #ifdef UNICODE
20 #define wxT(x) L ## x
21 #else // !Unicode
22 #define wxT(x) x
23 #endif
24 @endcode
25*/
26wxChar wxT(char ch);
4cc4bfaf 27const wxChar* wxT(const char* s);
23324ae1
FM
28//@}
29
30
7c913512 31//@{
23324ae1
FM
32/**
33 wxS is macro which can be used with character and string literals to either
34 convert them to wide characters or strings in @c wchar_t-based Unicode
35 builds or keep them unchanged in UTF-8 builds. The use of this macro is
36 optional as the translation will always be done at run-time even if there is a
37 mismatch between the kind of the literal used and wxStringCharType used in the
38 current build, but using it can be beneficial in performance-sensitive code to
39 do the conversion at compile-time instead.
7c913512 40
e54c96f1 41 @see wxT()
23324ae1
FM
42*/
43wxStringCharType wxS(char ch);
4cc4bfaf 44const wxStringCharType* wxS(const char* s);
23324ae1
FM
45//@}
46