Differences From Artifact [0dd447c3c4]:
- File
src/OFXMLParser.m
— part of check-in
[627511b032]
at
2020-11-14 12:23:55
on branch trunk
— Rename of_malloc and of_calloc
The new names should be more accurate. (user: js, size: 28057) [annotate] [blame] [check-ins using] [more...]
To Artifact [495894cd91]:
- File src/OFXMLParser.m — part of check-in [6b21acb1a9] at 2020-12-29 13:11:55 on branch trunk — Let OFXMLElement take a stream instead of a file (user: js, size: 27839) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
91 92 93 94 95 96 97 | [OF_XMLPARSER_IN_DOCTYPE] = inDOCTYPEState }; static OF_INLINE void appendToBuffer(OFMutableData *buffer, const char *string, of_string_encoding_t encoding, size_t length) { | | | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | [OF_XMLPARSER_IN_DOCTYPE] = inDOCTYPEState }; static OF_INLINE void appendToBuffer(OFMutableData *buffer, const char *string, of_string_encoding_t encoding, size_t length) { if OF_LIKELY(encoding == OF_STRING_ENCODING_UTF_8) [buffer addItems: string count: length]; else { void *pool = objc_autoreleasePoolPush(); OFString *tmp = [OFString stringWithCString: string encoding: encoding length: length]; |
︙ | ︙ | |||
289 290 291 292 293 294 295 | length: length]; } } @finally { free(buffer); } } | < < < < < < < < < < < < < | 289 290 291 292 293 294 295 296 297 298 299 300 301 302 | length: length]; } } @finally { free(buffer); } } static void inByteOrderMarkState(OFXMLParser *self) { if (self->_data[self->_i] != "\xEF\xBB\xBF"[self->_level]) { if (self->_level == 0) { self->_state = OF_XMLPARSER_OUTSIDE_TAG; self->_i--; |
︙ | ︙ |