wxMBConv test cases, patch 1179989 from Vince Harron

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2005-08-08 22:29:05 +00:00
parent 394579cf6f
commit 8f1158912f
2 changed files with 909 additions and 2 deletions

View File

@@ -1346,6 +1346,18 @@ private:
static bool ms_wcNeedsSwap;
};
// make the constructor available for unit testing
WXDLLIMPEXP_BASE wxMBConv* new_wxMBConv_iconv( const wxChar* name )
{
wxMBConv_iconv* result = new wxMBConv_iconv( name );
if ( !result->IsOk() )
{
delete result;
return 0;
}
return result;
}
const char *wxMBConv_iconv::ms_wcCharsetName = NULL;
bool wxMBConv_iconv::ms_wcNeedsSwap = false;
@@ -2405,6 +2417,18 @@ public:
DECLARE_NO_COPY_CLASS(wxMBConv_wxwin)
};
// make the constructors available for unit testing
WXDLLIMPEXP_BASE wxMBConv* new_wxMBConv_wxwin( const wxChar* name )
{
wxMBConv_wxwin* result = new wxMBConv_wxwin( name );
if ( !result->IsOk() )
{
delete result;
return 0;
}
return result;
}
#endif // wxUSE_FONTMAP
// ============================================================================