void wxMacStringToPascal( const wxString&from , StringPtr to ) ;
wxString wxMacMakeStringFromPascal( ConstStringPtr from ) ;
+void wxMacConvertNewlines13To10( char * data ) ;
+void wxMacConvertNewlines10To13( char * data ) ;
+void wxMacConvertNewlines13To10( wxString *data ) ;
+void wxMacConvertNewlines10To13( wxString *data ) ;
+
+#if wxUSE_UNICODE
+void wxMacConvertNewlines13To10( wxChar * data ) ;
+void wxMacConvertNewlines10To13( wxChar * data ) ;
+#endif
+
#if TARGET_CARBON
class wxMacCFStringHolder
m_release = false ;
}
- wxMacCFStringHolder(const wxString &str)
+ wxMacCFStringHolder(const wxString &str , wxFontEncoding encoding )
{
m_cfs = NULL ;
m_release = false ;
- Assign( str ) ;
+ Assign( str , encoding ) ;
}
wxMacCFStringHolder(CFStringRef ref , bool release = true )
{
Release() ;
}
-
- wxMacCFStringHolder& operator=(const wxString& str)
- {
- Release() ;
- Assign( str ) ;
- return *this;
- }
-
+
CFStringRef Detach()
{
CFStringRef retval = m_cfs ;
m_cfs = NULL ;
}
+ void Assign( const wxString &str , wxFontEncoding encoding ) ;
+
operator CFStringRef () { return m_cfs; }
- wxString AsString() ;
+ wxString AsString( wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) ;
private:
- void Assign( const wxString &str ) ;
CFStringRef m_cfs;
bool m_release ;
#endif
+
+
+wxUint32 wxMacGetSystemEncFromFontEnc(wxFontEncoding encoding) ;
+wxFontEncoding wxMacGetFontEncFromSystemEnc(wxUint32 encoding) ;
+
+
#endif
// _WX_PRIVATE_H_