Differences From Artifact [a6e52ebdfd]:
- File
src/OFURL.m
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 10266) [annotate] [blame] [check-ins using]
To Artifact [bdf49c5547]:
- File src/OFURL.m — part of check-in [3eb411511e] at 2016-02-21 12:04:17 on branch trunk — Add +[OFURL fileURLWithPath:] (user: js, size: 10536) [annotate] [blame] [check-ins using]
︙ | |||
46 47 48 49 50 51 52 53 54 55 56 57 58 59 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | + + + + + + + + + + + + + | + (instancetype)URLWithString: (OFString*)string relativeToURL: (OFURL*)URL { return [[[self alloc] initWithString: string relativeToURL: URL] autorelease]; } + (instancetype)fileURLWithPath: (OFString*)path { OFURL *URL = [OFURL URL]; void *pool = objc_autoreleasePoolPush(); [URL setScheme: @"file"]; [URL setPath: [[path pathComponents] componentsJoinedByString: @"/"]]; objc_autoreleasePoolPop(pool); return URL; } - initWithString: (OFString*)string { char *UTF8String, *UTF8String2 = NULL; self = [super init]; |
︙ |