Differences From Artifact [ee6a333bc6]:
- File
src/OFHTTPCookie.m
— part of check-in
[44f45c2e35]
at
2017-01-09 17:36:36
on branch trunk
— Update copyright
Forgot to add 2017, even though I already did quite some changes in
2017. (user: js, size: 9159) [annotate] [blame] [check-ins using]
To Artifact [ef24e84f97]:
- File
src/OFHTTPCookie.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 9168) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
53 54 55 56 57 58 59 | } @implementation OFHTTPCookie @synthesize name = _name, value = _value, expires = _expires, domain = _domain; @synthesize path = _path, secure = _secure, HTTPOnly = _HTTPOnly; @synthesize extensions = _extensions; | | | | | | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | } @implementation OFHTTPCookie @synthesize name = _name, value = _value, expires = _expires, domain = _domain; @synthesize path = _path, secure = _secure, HTTPOnly = _HTTPOnly; @synthesize extensions = _extensions; + (instancetype)cookieWithName: (OFString *)name value: (OFString *)value { return [[[self alloc] initWithName: name value: value] autorelease]; } + (OFArray OF_GENERIC(OFHTTPCookie *) *)cookiesForString: (OFString *)string { OFMutableArray OF_GENERIC(OFHTTPCookie *) *ret = [OFMutableArray array]; void *pool = objc_autoreleasePoolPush(); const of_unichar_t *characters = [string characters]; size_t length = [string length], last = 0; enum { STATE_PRE_NAME, STATE_NAME, STATE_EXPECT_VALUE, |
︙ | ︙ | |||
245 246 247 248 249 250 251 | } - init { OF_INVALID_INIT_METHOD } | | | | 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | } - init { OF_INVALID_INIT_METHOD } - initWithName: (OFString *)name value: (OFString *)value { self = [super init]; @try { _name = [name copy]; _value = [value copy]; _extensions = [[OFMutableArray alloc] init]; |
︙ | ︙ | |||
343 344 345 346 347 348 349 | [copy release]; @throw e; } return copy; } | | | 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 | [copy release]; @throw e; } return copy; } - (OFString *)description { OFMutableString *ret = [OFMutableString stringWithFormat: @"%@=%@", _name, _value]; void *pool = objc_autoreleasePoolPush(); if (_expires != nil) [ret appendString: |
︙ | ︙ |