first phase of transition to unified Unicode build:
1. changed c_str() to return wxCStrData (implicitly convertible to wxChar*) 2. added template type-safe wrappers for vararg functions 3. added wxUniChar class representing single Unicode character 4. changed wxString::operator[] and wxString::iterator to return wxUniChar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -91,7 +91,7 @@ void wxVLogGeneric(wxLogLevel level, const wxChar *szFormat, va_list argptr)
|
||||
}
|
||||
}
|
||||
|
||||
void wxLogGeneric(wxLogLevel level, const wxChar *szFormat, ...)
|
||||
void wxDoLogGeneric(wxLogLevel level, const wxChar *szFormat, ...)
|
||||
{
|
||||
va_list argptr;
|
||||
va_start(argptr, szFormat);
|
||||
@@ -108,7 +108,7 @@ void wxLogGeneric(wxLogLevel level, const wxChar *szFormat, ...)
|
||||
} \
|
||||
} \
|
||||
\
|
||||
void wxLog##level(const wxChar *szFormat, ...) \
|
||||
void wxDoLog##level(const wxChar *szFormat, ...) \
|
||||
{ \
|
||||
va_list argptr; \
|
||||
va_start(argptr, szFormat); \
|
||||
@@ -145,7 +145,7 @@ void wxVLogFatalError(const wxChar *szFormat, va_list argptr)
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxLogFatalError(const wxChar *szFormat, ...)
|
||||
void wxDoLogFatalError(const wxChar *szFormat, ...)
|
||||
{
|
||||
va_list argptr;
|
||||
va_start(argptr, szFormat);
|
||||
@@ -167,7 +167,7 @@ void wxVLogVerbose(const wxChar *szFormat, va_list argptr)
|
||||
}
|
||||
}
|
||||
|
||||
void wxLogVerbose(const wxChar *szFormat, ...)
|
||||
void wxDoLogVerbose(const wxChar *szFormat, ...)
|
||||
{
|
||||
va_list argptr;
|
||||
va_start(argptr, szFormat);
|
||||
@@ -186,7 +186,7 @@ void wxLogVerbose(const wxChar *szFormat, ...)
|
||||
} \
|
||||
} \
|
||||
\
|
||||
void wxLog##level(const wxChar *szFormat, ...) \
|
||||
void wxDoLog##level(const wxChar *szFormat, ...) \
|
||||
{ \
|
||||
va_list argptr; \
|
||||
va_start(argptr, szFormat); \
|
||||
@@ -199,12 +199,12 @@ void wxLogVerbose(const wxChar *szFormat, ...)
|
||||
if ( wxLog::IsEnabled() && wxLog::IsAllowedTraceMask(mask) ) {
|
||||
wxString msg;
|
||||
msg << _T("(") << mask << _T(") ") << wxString::FormatV(szFormat, argptr);
|
||||
|
||||
|
||||
wxLog::OnLog(wxLOG_Trace, msg, time(NULL));
|
||||
}
|
||||
}
|
||||
|
||||
void wxLogTrace(const wxChar *mask, const wxChar *szFormat, ...)
|
||||
void wxDoLogTrace(const wxChar *mask, const wxChar *szFormat, ...)
|
||||
{
|
||||
va_list argptr;
|
||||
va_start(argptr, szFormat);
|
||||
@@ -222,7 +222,7 @@ void wxLogVerbose(const wxChar *szFormat, ...)
|
||||
}
|
||||
}
|
||||
|
||||
void wxLogTrace(wxTraceMask mask, const wxChar *szFormat, ...)
|
||||
void wxDoLogTrace(wxTraceMask mask, const wxChar *szFormat, ...)
|
||||
{
|
||||
va_list argptr;
|
||||
va_start(argptr, szFormat);
|
||||
@@ -251,7 +251,7 @@ void WXDLLEXPORT wxVLogSysError(const wxChar *szFormat, va_list argptr)
|
||||
wxVLogSysError(wxSysErrorCode(), szFormat, argptr);
|
||||
}
|
||||
|
||||
void WXDLLEXPORT wxLogSysError(const wxChar *szFormat, ...)
|
||||
void WXDLLEXPORT wxDoLogSysError(const wxChar *szFormat, ...)
|
||||
{
|
||||
va_list argptr;
|
||||
va_start(argptr, szFormat);
|
||||
@@ -268,7 +268,7 @@ void WXDLLEXPORT wxVLogSysError(long err, const wxChar *fmt, va_list argptr)
|
||||
}
|
||||
}
|
||||
|
||||
void WXDLLEXPORT wxLogSysError(long lErrCode, const wxChar *szFormat, ...)
|
||||
void WXDLLEXPORT wxDoLogSysError(long lErrCode, const wxChar *szFormat, ...)
|
||||
{
|
||||
va_list argptr;
|
||||
va_start(argptr, szFormat);
|
||||
|
Reference in New Issue
Block a user