Overview
Comment: | Remove -[OFDictionary URIQueryString]
It duplicates the functionality of -[OFMutableURI setQueryDictionary:]. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f1bf64ca9fcfa6d965301c0b5dcf519a |
User & Date: | js on 2022-09-28 22:02:50 |
Other Links: | manifest | tags |
Context
2022-09-28
| ||
22:05 | OFHTTPClientDelegate: Improve a method name check-in: 4b1045c2d1 user: js tags: trunk | |
22:02 | Remove -[OFDictionary URIQueryString] check-in: f1bf64ca9f user: js tags: trunk | |
21:40 | Rename OFUR{L -> I} in preparation for URI support check-in: e7ab06503c user: js tags: trunk | |
Changes
Modified src/OFDictionary.h from [c2fdfea4e8] to [73af2a9ef3].
︙ | ︙ | |||
89 90 91 92 93 94 95 | @property (readonly, nonatomic) OFArray OF_GENERIC(KeyType) *allKeys; /** * @brief An array of all objects. */ @property (readonly, nonatomic) OFArray OF_GENERIC(ObjectType) *allObjects; | < < < < < | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | @property (readonly, nonatomic) OFArray OF_GENERIC(KeyType) *allKeys; /** * @brief An array of all objects. */ @property (readonly, nonatomic) OFArray OF_GENERIC(ObjectType) *allObjects; /** * @brief Creates a new OFDictionary. * * @return A new autoreleased OFDictionary */ + (instancetype)dictionary; |
︙ | ︙ |
Modified src/OFDictionary.m from [2aa21595b1] to [9689ae0f89].
︙ | ︙ | |||
628 629 630 631 632 633 634 | [ret appendString: @";\n"]; objc_autoreleasePoolPop(pool2); } [ret replaceOccurrencesOfString: @"\n" withString: @"\n\t"]; [ret appendString: @";\n}"]; | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 628 629 630 631 632 633 634 635 636 637 638 639 640 641 | [ret appendString: @";\n"]; objc_autoreleasePoolPop(pool2); } [ret replaceOccurrencesOfString: @"\n" withString: @"\n\t"]; [ret appendString: @";\n}"]; [ret makeImmutable]; objc_autoreleasePoolPop(pool); return ret; } |
︙ | ︙ |
Modified tests/OFDictionaryTests.m from [c3ff6abd22] to [856ca278b2].
︙ | ︙ | |||
247 248 249 250 251 252 253 | ok = true; } TEST(@"Detection of mutation during Fast Enumeration", ok) [mutableDict removeObjectForKey: @""]; | < < < < < | 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | ok = true; } TEST(@"Detection of mutation during Fast Enumeration", ok) [mutableDict removeObjectForKey: @""]; #ifdef OF_HAVE_BLOCKS { __block size_t j = 0; __block bool blockOk = true; [mutableDict enumerateKeysAndObjectsUsingBlock: ^ (id key, id object, bool *stop) { |
︙ | ︙ |
Modified tests/OFURITests.m from [6305d6606a] to [66101ddcf7].
︙ | ︙ | |||
230 231 232 233 234 235 236 | EXPECT_EXCEPTION( @"-[setPercentEncodedHost:] with invalid characters fails #2", OFInvalidFormatException, mutableURI.percentEncodedHost = @"[12:34") EXPECT_EXCEPTION( @"-[setPercentEncodedHost:] with invalid characters fails #3", | | > | 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 | EXPECT_EXCEPTION( @"-[setPercentEncodedHost:] with invalid characters fails #2", OFInvalidFormatException, mutableURI.percentEncodedHost = @"[12:34") EXPECT_EXCEPTION( @"-[setPercentEncodedHost:] with invalid characters fails #3", OFInvalidFormatException, mutableURI.percentEncodedHost = @"[a::g]") TEST(@"-[setUser:]", (mutableURI.user = @"us:er") && [mutableURI.percentEncodedUser isEqual: @"us%3Aer"]) TEST(@"-[setPercentEncodedUser:]", (mutableURI.percentEncodedUser = @"us%3Aer") && |
︙ | ︙ |