485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
|
appendToBuffer(self->_buffer, self->_data + self->_last,
self->_encoding, self->_i - self->_last);
PI = transformString(self, self->_buffer, 1, false);
whitespaceCS = [OFCharacterSet
characterSetWithCharactersInString: @" \r\n\r"];
pos = [PI indexOfCharacterFromSet: whitespaceCS];
if (pos != OF_NOT_FOUND) {
target = [PI substringToIndex: pos];
data = [[PI substringFromIndex: pos + 1]
stringByDeletingEnclosingWhitespaces];
if (data.length == 0)
data = nil;
} else
|
|
|
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
|
appendToBuffer(self->_buffer, self->_data + self->_last,
self->_encoding, self->_i - self->_last);
PI = transformString(self, self->_buffer, 1, false);
whitespaceCS = [OFCharacterSet
characterSetWithCharactersInString: @" \r\n\r"];
pos = [PI indexOfCharacterFromSet: whitespaceCS];
if (pos != OFNotFound) {
target = [PI substringToIndex: pos];
data = [[PI substringFromIndex: pos + 1]
stringByDeletingEnclosingWhitespaces];
if (data.length == 0)
data = nil;
} else
|