Differences From Artifact [34596a2a5f]:
- File
src/OFString.m
— part of check-in
[e47ad44290]
at
2008-10-22 13:32:19
on branch trunk
— Reworked OFObject and added append(Wide)CString to OFString.
The reworked OFObject lets one test fail on the GNU runtime.
Unfortunately, I have no idea why... (user: js, size: 2252) [annotate] [blame] [check-ins using]
To Artifact [ffab6838ef]:
- File src/OFString.m — part of check-in [62abf39400] at 2008-10-25 22:25:50 on branch trunk — newWithFooString -> newAsFooString. (user: js, size: 2247) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
18 19 20 21 22 23 24 | #import "OFConstCString.h" #import "OFConstWideCString.h" #import "OFCString.h" #import "OFWideCString.h" #import "OFExceptions.h" @implementation OFString | | | | | | 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 | #import "OFConstCString.h" #import "OFConstWideCString.h" #import "OFCString.h" #import "OFWideCString.h" #import "OFExceptions.h" @implementation OFString + newAsConstCString: (const char*)str { return [[OFConstCString alloc] initWithConstCString: str]; } + newAsConstWideCString: (const wchar_t*)str { return [[OFConstWideCString alloc] initWithConstWideCString: str]; } + newAsCString: (char*)str { return [[OFCString alloc] initWithCString: str]; } + newAsWideCString: (wchar_t*)str { return [[OFWideCString alloc] initWithWideCString: str]; } - (char*)cString { [[OFNotImplementedException newWithObject: self |
︙ | ︙ | |||
96 97 98 99 100 101 102 | { [[OFNotImplementedException newWithObject: self andSelector: @selector(appendCString:)] raise]; return nil; } | | | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | { [[OFNotImplementedException newWithObject: self andSelector: @selector(appendCString:)] raise]; return nil; } - (OFString*)appendWideCString: (const wchar_t*)str { [[OFNotImplementedException newWithObject: self andSelector: @selector( appendWideCString:)] raise]; return nil; } @end |