18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#import "OFDictionary.h"
#import "OFString.h"
#import "OFExceptions.h"
int
main()
{
OFDictionary *dict = [OFDictionary dictionaryWithHashSize: 16];
OFIterator *iter = [dict iterator];
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFString *key1 = [OFString stringWithCString: "key1"];
OFString *key2 = [OFString stringWithCString: "key2"];
OFString *value1 = [OFString stringWithCString: "value1"];
OFString *value2 = [OFString stringWithCString: "value2"];
|
|
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#import "OFDictionary.h"
#import "OFString.h"
#import "OFExceptions.h"
int
main()
{
OFDictionary *dict = [OFMutableDictionary dictionaryWithHashSize: 16];
OFIterator *iter = [dict iterator];
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFString *key1 = [OFString stringWithCString: "key1"];
OFString *key2 = [OFString stringWithCString: "key2"];
OFString *value1 = [OFString stringWithCString: "value1"];
OFString *value2 = [OFString stringWithCString: "value2"];
|