186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
return [delegate string: self containsUnknownEntityNamed: entity];
}
#ifdef OF_HAVE_BLOCKS
static id
lookupUsingBlock(void *context, OFString *self, OFString *entity)
{
of_string_xml_unescaping_block_t block = context;
if (block == NULL)
return nil;
return block(self, entity);
}
#endif
|
|
|
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
return [delegate string: self containsUnknownEntityNamed: entity];
}
#ifdef OF_HAVE_BLOCKS
static id
lookupUsingBlock(void *context, OFString *self, OFString *entity)
{
OFStringXMLUnescapingBlock block = context;
if (block == NULL)
return nil;
return block(self, entity);
}
#endif
|
208
209
210
211
212
213
214
215
216
217
218
219
220
221
|
- (OFString *)stringByXMLUnescapingWithDelegate:
(id <OFStringXMLUnescapingDelegate>)delegate
{
return parseEntities(self, lookupUsingDelegate, delegate);
}
#ifdef OF_HAVE_BLOCKS
- (OFString *)stringByXMLUnescapingWithBlock:
(of_string_xml_unescaping_block_t)block
{
return parseEntities(self, lookupUsingBlock, block);
}
#endif
@end
|
|
<
|
208
209
210
211
212
213
214
215
216
217
218
219
220
|
- (OFString *)stringByXMLUnescapingWithDelegate:
(id <OFStringXMLUnescapingDelegate>)delegate
{
return parseEntities(self, lookupUsingDelegate, delegate);
}
#ifdef OF_HAVE_BLOCKS
- (OFString *)stringByXMLUnescapingWithBlock: (OFStringXMLUnescapingBlock)block
{
return parseEntities(self, lookupUsingBlock, block);
}
#endif
@end
|