using common code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -849,12 +849,10 @@ wxString wxMacFSRefToPath( const FSRef *fsRef , CFStringRef additionalPathCompon
|
|||||||
additionalPathComponent,false);
|
additionalPathComponent,false);
|
||||||
CFRelease( parentURLRef ) ;
|
CFRelease( parentURLRef ) ;
|
||||||
}
|
}
|
||||||
CFStringRef cfString = CFURLCopyFileSystemPath(fullURLRef, kDefaultPathStyle);
|
wxCFStringRef cfString( CFURLCopyFileSystemPath(fullURLRef, kDefaultPathStyle ));
|
||||||
CFRelease( fullURLRef ) ;
|
CFRelease( fullURLRef ) ;
|
||||||
CFMutableStringRef cfMutableString = CFStringCreateMutableCopy(NULL, 0, cfString);
|
|
||||||
CFRelease( cfString );
|
return wxCFStringRef::AsStringWithNormalizationFormC(cfString);
|
||||||
CFStringNormalize(cfMutableString,kCFStringNormalizationFormC);
|
|
||||||
return wxCFStringRef(cfMutableString).AsString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
OSStatus wxMacPathToFSRef( const wxString&path , FSRef *fsRef )
|
OSStatus wxMacPathToFSRef( const wxString&path , FSRef *fsRef )
|
||||||
@@ -879,13 +877,10 @@ OSStatus wxMacPathToFSRef( const wxString&path , FSRef *fsRef )
|
|||||||
|
|
||||||
wxString wxMacHFSUniStrToString( ConstHFSUniStr255Param uniname )
|
wxString wxMacHFSUniStrToString( ConstHFSUniStr255Param uniname )
|
||||||
{
|
{
|
||||||
CFStringRef cfname = CFStringCreateWithCharacters( kCFAllocatorDefault,
|
wxCFStringRef cfname( CFStringCreateWithCharacters( kCFAllocatorDefault,
|
||||||
uniname->unicode,
|
uniname->unicode,
|
||||||
uniname->length );
|
uniname->length ) );
|
||||||
CFMutableStringRef cfMutableString = CFStringCreateMutableCopy(NULL, 0, cfname);
|
return wxCFStringRef::AsStringWithNormalizationFormC(cfname);
|
||||||
CFRelease( cfname );
|
|
||||||
CFStringNormalize(cfMutableString,kCFStringNormalizationFormC);
|
|
||||||
return wxCFStringRef(cfMutableString).AsString() ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __LP64__
|
#ifndef __LP64__
|
||||||
|
Reference in New Issue
Block a user