Differences From Artifact [1fcc11b4c5]:
- File
src/OFString+XMLUnescaping.h
— part of check-in
[e2b06423e0]
at
2010-09-05 23:19:08
on branch trunk
— Replace OFObject* with id in many places.
We assume now that every object understands retain, release, etc. so
that we can weaken the type from OFObject* to id. This makes it
possible to use different root object classes. (user: js, size: 1430) [annotate] [blame] [check-ins using]
To Artifact [dde235754c]:
- File src/OFString+XMLUnescaping.h — part of check-in [76903ee63f] at 2010-09-26 14:40:51 on branch trunk — Add -[stringByXMLUnescapingWithBlock:]. (user: js, size: 1794) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | * the packaging of this file. */ #import "OFString.h" extern int _OFString_XMLUnescaping_reference; /** * \brief A protocol that needs to be implemented by delegates for * -[stringByXMLUnescapingWithHandler:]. */ @protocol OFStringXMLUnescapingDelegate /** * This callback is called when an unknown entity was found while trying to | > > > > > | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | * the packaging of this file. */ #import "OFString.h" extern int _OFString_XMLUnescaping_reference; #ifdef OF_HAVE_BLOCKS typedef OFString* (^of_string_xml_unescaping_block_t)(OFString *str, OFString *entity); #endif /** * \brief A protocol that needs to be implemented by delegates for * -[stringByXMLUnescapingWithHandler:]. */ @protocol OFStringXMLUnescapingDelegate /** * This callback is called when an unknown entity was found while trying to |
︙ | ︙ | |||
37 38 39 40 41 42 43 | @interface OFString (XMLUnescaping) /** * Unescapes XML in the string. */ - (OFString*)stringByXMLUnescaping; /** | | > > > > > > > > > | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | @interface OFString (XMLUnescaping) /** * Unescapes XML in the string. */ - (OFString*)stringByXMLUnescaping; /** * Unescapes XML in the string and uses the specified delegate for unknown * entities. * * \param h An OFXMLUnescapingDelegate as a handler for unknown entities */ - (OFString*)stringByXMLUnescapingWithDelegate: (id <OFStringXMLUnescapingDelegate>)delegate; /** * Unescapes XML in the string and uses the specified block for unknown * entities. * * \param h A block as a handler for unknown entities */ - (OFString*)stringByXMLUnescapingWithBlock: (of_string_xml_unescaping_block_t)block; @end |