reduce dependecy on libxml2

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28263 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-04-29 09:26:52 +00:00
parent 9faaf05aff
commit d28ec5d0c3
5 changed files with 25 additions and 267 deletions

View file

@ -2901,6 +2901,7 @@ NSDebugMLLog(@"GSMime", @"Header parsed - %@", info);
{
unsigned diff = input - lineEnd;
bytes[input] = ' ';
memmove(&bytes[lineStart + diff], &bytes[lineStart], length);
lineStart += diff;
lineEnd += diff;
@ -3347,7 +3348,7 @@ appendBytes(NSMutableData *m, unsigned offset, unsigned fold,
* If we already have space at the end of the line,
* we remove it because the wrapping counts as a space.
*/
if (len > 0 && ((unsigned char*)[m bytes])[len - 1] == ' ')
if (len > 0 && isspace(((unsigned char*)[m bytes])[len - 1]))
{
[m setLength: --len];
}