Differences From Artifact [73af2a9ef3]:
- File
src/OFDictionary.h
— part of check-in
[f1bf64ca9f]
at
2022-09-28 22:02:50
on branch trunk
— Remove -[OFDictionary URIQueryString]
It duplicates the functionality of -[OFMutableURI setQueryDictionary:]. (user: js, size: 9691) [annotate] [blame] [check-ins using] [more...]
To Artifact [9edabda7a1]:
- File src/OFDictionary.h — part of check-in [26ddd2e4e4] at 2024-01-02 17:17:25 on branch trunk — Update copyright (user: js, size: 9840) [annotate] [blame] [check-ins using] [more...]
1 | 1 2 3 4 5 6 7 8 9 | - + | /* |
| ︙ | |||
21 22 23 24 25 26 27 | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | - | #endif #include <stdarg.h> #import "OFObject.h" #import "OFCollection.h" #import "OFEnumerator.h" |
| ︙ | |||
73 74 75 76 77 78 79 | 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | - + | * @note Fast enumeration on a dictionary enumerates through the keys of the * dictionary. * * @note Subclasses must implement @ref objectForKey:, @ref count and * @ref keyEnumerator. */ @interface OFDictionary OF_GENERIC(KeyType, ObjectType): OFObject <OFCopying, |
| ︙ | |||
146 147 148 149 150 151 152 153 154 155 156 157 158 159 | 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | + + + + + + + |
*
* @param firstKey The first key
* @return A new autoreleased OFDictionary
*/
+ (instancetype)dictionaryWithKeysAndObjects: (KeyType)firstKey, ...
OF_SENTINEL;
/**
* @brief Initializes an already allocated OFDictionary to be empty.
*
* @return An initialized OFDictionary
*/
- (instancetype)init OF_DESIGNATED_INITIALIZER;
/**
* @brief Initializes an already allocated OFDictionary with the specified
* OFDictionary.
*
* @param dictionary An OFDictionary
* @return An initialized OFDictionary
*/
|
| ︙ | |||
188 189 190 191 192 193 194 | 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | - + | * @param keys An array of keys * @param objects An array of objects * @param count The number of objects in the arrays * @return An initialized OFDictionary */ - (instancetype)initWithObjects: (ObjectType const _Nonnull *_Nonnull)objects forKeys: (KeyType const _Nonnull *_Nonnull)keys |
| ︙ |