wxWidgets String functions

来源:互联网 发布:windows 2008打开iis 编辑:程序博客网 时间:2024/06/01 22:38

http://docs.wxwidgets.org/2.8/wx_stringfunctions.html#wxt

_(wxT("健康"))

_

const wxChar * _(const char *s)

This macro expands into a call to wxGetTranslation function, so it marks the message for the extraction by xgettext just as wxTRANSLATE does, but also returns the translation of the string for the current locale during execution.

Don't confuse this macro with _T()!

wxT

wxChar wxT(char ch)

const wxChar * wxT(const char *s)

wxT() is a macro which can be used with character and string literals (in other words, 'x' or "foo") to automatically convert them to Unicode in Unicode build configuration. Please see the Unicode overview for more information.

This macro is simply returns the value passed to it without changes in ASCII build. In fact, its definition is:

#ifdef UNICODE#define wxT(x) L ## x#else // !Unicode#define wxT(x) x#endif

原创粉丝点击