+2005-02-23 Helge Hess <helge.hess@opengroupware.org>
+
+ * FdExt.subproj/NSNull+misc.m: added -hasPrefix: / -hasSuffix:, should
+ fix OGo bug #1080 (v4.5.152)
+
2005-02-21 Helge Hess <helge.hess@opengroupware.org>
* FdExt.subproj/NSString+URLEscaping.m: changed to escape '+' chars
}
- (BOOL)isEqualToString:(NSString *)_s {
-#if DEBUG
- NSLog(@"WARNING(%s): "
- @"called NSNull -isEqualToString:!!!",
- __PRETTY_FUNCTION__);
- if (doAbort()) abort();
-#endif
+ /* Note: I think we can keep this as a regular method */
+ return _s == (id)self || _s == nil ? YES : NO;
+}
+- (BOOL)hasPrefix:(NSString *)_s {
+ /* Note: I think we can keep this as a regular method */
+ return _s == (id)self || _s == nil ? YES : NO;
+}
+- (BOOL)hasSuffix:(NSString *)_s {
+ /* Note: I think we can keep this as a regular method */
return _s == (id)self || _s == nil ? YES : NO;
}