ObjFW  Check-in [eb6aafad32]

Overview
Comment:Add - data for OFArray.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: eb6aafad32eb08eb959d524cf32ba16c64464b8f582fa39935b5032b677fb53f
User & Date: js on 2009-05-07 12:55:50
Other Links: manifest | tags
Context
2009-05-07
16:08
Add OFSocket base class. check-in: 0110aec5c0 user: js tags: trunk
12:55
Add - data for OFArray. check-in: eb6aafad32 user: js tags: trunk
11:55
There is no point in splitWithDelimiter: requiring an OFString.
Plus some code clean up in splitWithDelimiter:.
check-in: 1d44132d96 user: js tags: trunk
Changes

Modified src/OFArray.h from [830e9546bb] to [8da41f0b46].

26
27
28
29
30
31
32





33
34
35
36
37
38
39
+ array;

/**
 * \return The number of objects in the OFArray
 */
- (size_t)count;






/**
 * Clones the OFArray, creating a new one.
 *
 * \return A new autoreleased copy of the OFArray
 */
- (id)copy;








>
>
>
>
>







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
+ array;

/**
 * \return The number of objects in the OFArray
 */
- (size_t)count;

/**
 * \return The objects of the array as a C array
 */
- (id*)data;

/**
 * Clones the OFArray, creating a new one.
 *
 * \return A new autoreleased copy of the OFArray
 */
- (id)copy;

Modified src/OFArray.m from [76eafae349] to [a36255520a].

39
40
41
42
43
44
45





46
47
48
49
50
51
52
	return self;
}

- (size_t)count
{
	return [array count];
}






- (id)copy
{
	OFArray *new = [OFArray array];
	OFObject **objs;
	size_t len, i;








>
>
>
>
>







39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
	return self;
}

- (size_t)count
{
	return [array count];
}

- (id*)data
{
	return [array data];
}

- (id)copy
{
	OFArray *new = [OFArray array];
	OFObject **objs;
	size_t len, i;