git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71918
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxString AsString( wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) const;
static wxString AsString( CFStringRef ref, wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) ;
+ static wxString AsStringWithNormalizationFormC( CFStringRef ref, wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) ;
#if wxOSX_USE_COCOA_OR_IPHONE
static wxString AsString( NSString* ref, wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) ;
#endif
}
}
+wxString wxCFStringRef::AsStringWithNormalizationFormC( CFStringRef ref, wxFontEncoding encoding )
+{
+ if ( !ref )
+ return wxEmptyString ;
+
+ CFMutableStringRef cfMutableString = CFStringCreateMutableCopy(NULL, 0, ref);
+ CFStringNormalize(cfMutableString,kCFStringNormalizationFormC);
+ wxString str = wxCFStringRef::AsString(ref,encoding);
+ CFRelease(cfMutableString);
+ return str;
+}
+
wxString wxCFStringRef::AsString( CFStringRef ref, wxFontEncoding WXUNUSED_IN_UNICODE(encoding) )
{
if ( !ref )