Differences From Artifact [0a9cee9129]:
- File
src/OFArray.h
— part of check-in
[61a6ac873a]
at
2009-02-14 17:08:21
on branch trunk
— Big diff, see details.
* Add OFComparable protocol.
* Add OFInvalidArgument exception - needs that sel_getName vs.
sel_get_name stuff again, therefore reintroduce it.
* Implement proper copy method for OFString and OFArray.
* Add isEqual: and compare: for OFString and OFArray. (user: js, size: 2618) [annotate] [blame] [check-ins using]
To Artifact [9a5683be2a]:
- File src/OFArray.h — part of check-in [d9308adc2b] at 2009-02-15 16:40:43 on branch trunk — Get rid of OFComparable and make it part of OFObject. (user: js, size: 2788) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | - - + | /* * Copyright (c) 2008 - 2009 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "OFObject.h" |
︙ | |||
60 61 62 63 64 65 66 67 68 69 70 71 72 73 | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | + + + + + + + + + + + + + + + + | - (size_t)itemsize; /** * \return All elements of the OFArray */ - (void*)data; /** * Clones the OFArray, creating a new one. * * \return A new autoreleased copy of the OFArray */ - (id)copy; /** * Compares the OFArray to another object. * * \param obj An object to compare with * \return An integer which is the result of the comparison, see for example * strcmp */ - (int)compare: (id)obj; /** * Returns a specific item of the OFArray. * * \param item The number of the item to return * \return The specified item of the OFArray */ - (void*)item: (size_t)item; |
︙ | |||
95 96 97 98 99 100 101 | 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | - - - - - - - | /** * Removes a specified amount of the last items from the OFArray. * * \param nitems The number of items to remove */ - removeNItems: (size_t)nitems; |