You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Foundation: add an extension to deal with Win paths
Windows uses wide paths (UTF16). Expose a similar internal API to the
CoreFoundation interfaces to aid in writing code locally and avoid
having to do the unicode conversions everywhere.
/* Returns the URL's path in file system representation. File system representation is a null-terminated C string with canonical UTF-8 encoding. The returned C string will be automatically freed just as a returned object would be released; your code should copy the representation or use getFileSystemRepresentation:maxLength: if it needs to store the representation outside of the autorelease context in which the representation is created.
586
592
*/
587
593
@@ -606,7 +612,22 @@ open class NSURL : NSObject, NSSecureCoding, NSCopying {
606
612
fatalError("URL cannot be expressed in the filesystem representation;"+
607
613
"use getFileSystemRepresentation to handle this case")
0 commit comments