Differences From Artifact [ed35d22672]:
- File
src/OFCString.h
— part of check-in
[9759533b97]
at
2008-10-28 18:19:15
on branch trunk
— Add #undefs in OFHashes.
Just to be sure that we won't get any conflicts when someone addes new
hashes. (user: js, size: 605) [annotate] [blame] [check-ins using]
To Artifact [661330dd84]:
- File src/OFCString.h — part of check-in [2690e9848f] at 2008-11-05 17:13:44 on branch trunk — Start documenting stuff. (user: js, size: 1385) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * the packaging of this file. */ #import <stddef.h> #import "OFString.h" @interface OFCString: OFString { char *string; size_t length; } - initAsCString: (char*)str; - (char*)cString; - (size_t)length; - (OFString*)clone; - (int)compareTo: (OFString*)str; | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | > > > > > > | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | * the packaging of this file. */ #import <stddef.h> #import "OFString.h" /** * An OFString using a C string as internal storage. */ @interface OFCString: OFString { char *string; size_t length; } /** * Initializes an already allocated OFCString. * * \param str A C string to initialize the OFCString with. * \returns An initialized OFCString */ - initAsCString: (char*)str; /** * \return The OFCString as a C string. */ - (char*)cString; /** * \return The length of the OFCString. */ - (size_t)length; /** * Clones the OFCString, creating a new one. * * \return A copy of the OFCString */ - (OFString*)clone; /** * Compares the OFCString to another OFString. * * \param str An OFString in a compatible type to compare with * \return An integer which is the result of the comparison, see strcmp. */ - (int)compareTo: (OFString*)str; /** * Append another OFString to the OFCString. * * \param str An OFString in a compatible type to append */ - append: (OFString*)str; /** * Append a C string to the OFCString. * * \param str A C string to append */ - appendCString: (const char*)str; @end |