moving UniChar code to one place

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2006-06-29 17:23:37 +00:00
parent 0910467e7c
commit dfd468aafd
2 changed files with 64 additions and 0 deletions

View File

@@ -88,4 +88,21 @@ private:
DECLARE_NO_COPY_CLASS( wxMacCFStringHolder )
} ;
// corresponding class for holding UniChars (native unicode characters)
class wxMacUniCharBuffer
{
public :
wxMacUniCharBuffer( const wxString &str ) ;
~wxMacUniCharBuffer() ;
UniChar* GetBuffer() ;
UniCharCount GetChars() ;
private :
UniChar* m_ubuf ;
UniCharCount m_chars ;
};
#endif //__WXCFSTRINGHOLDER_H__