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 [a0e17680fe]:
- File src/OFXMLParser.m — part of check-in [06349e3d84] at 2020-12-25 20:39:44 on branch trunk — Remove superfluous parenthesis (user: js, size: 28055) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
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];
|
| ︙ | ︙ |