}
}
+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 )
{
return AsString( (CFStringRef) ref, encoding );
}
-#endif
+
+wxString wxCFStringRef::AsStringWithNormalizationFormC( NSString* ref, wxFontEncoding encoding )
+{
+ return AsStringWithNormalizationFormC( (CFStringRef) ref, encoding );
+}
+#endif // wxOSX_USE_COCOA_OR_IPHONE
//