+2006-07-03 Helge Hess <helge.hess@opengroupware.org>
+
+ * libXMLSaxDriver.m: fixed last changes for libFoundation (v4.5.24)
+
2007-03-18 Marcus Mueller <znek@mulle-kybernetik.com>
* libxmlSAXDriver.m: rewrote decoding of hexadecimal entities as
/*
- Copyright (C) 2000-2005 SKYRIX Software AG
+ Copyright (C) 2000-2007 SKYRIX Software AG
+ Copyright (C) 2007 Helge Hess
This file is part of SOPE.
break;
}
}
+
if (needsDecoding) {
+ // TODO: This needs *serious* cleanup. Two small unichar buffers
+ // would be 10x faster and half the codesize.
NSMutableString *ds;
ds = [[NSMutableString alloc] initWithCapacity:len];
unsigned value;
vr = NSMakeRange(i + 3, r.location - i - 3);
- shex = [[s substringWithRange:vr]
- cStringUsingEncoding:NSASCIIStringEncoding];
+ shex = [[s substringWithRange:vr] cString];
sscanf(shex, "%x", &value);
c = (unichar)value;
}