Overview
Comment: | Make XMPPJID conform to OFCopying. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
58db21b120088ba15df18656312033d4 |
User & Date: | js on 2011-02-19 16:38:25 |
Other Links: | manifest | tags |
Context
2011-02-19
| ||
16:40 | Use XMPPJID for from and to. check-in: e5d6fa6802 user: js tags: trunk | |
16:38 | Make XMPPJID conform to OFCopying. check-in: 58db21b120 user: js tags: trunk | |
16:23 | Make use of -[elementsForName:]. check-in: fbe5acc621 user: js tags: trunk | |
Changes
Modified src/XMPPJID.h from [bfb4ff29a3] to [77ccbb27f8].
︙ | ︙ | |||
22 23 24 25 26 27 28 | */ #import <ObjFW/ObjFW.h> /** * \brief A class for easy handling of JIDs. */ | | | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | */ #import <ObjFW/ObjFW.h> /** * \brief A class for easy handling of JIDs. */ @interface XMPPJID: OFObject <OFCopying> { /// The JID's localpart OFString *node; /// The JID's domainpart OFString *domain; /// The JID's resourcepart OFString *resource; |
︙ | ︙ |
Modified src/XMPPJID.m from [738683692f] to [c01fa5eff3].
︙ | ︙ | |||
63 64 65 66 67 68 69 70 71 72 73 74 75 76 | toIndex: [str length]]]; [self setDomain: [str substringFromIndex: nodesep + 1 toIndex: resourcesep]]; return self; } - (void)setNode: (OFString*)node_ { OFString *old = node; char *nodepart; Stringprep_rc rc; | > > > > > > > > > > > > > > > > | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | toIndex: [str length]]]; [self setDomain: [str substringFromIndex: nodesep + 1 toIndex: resourcesep]]; return self; } - copy { XMPPJID *new = [[XMPPJID alloc] init]; @try { new->node = [node copy]; new->domain = [domain copy]; new->resource = [resource copy]; } @catch (id e) { [new release]; @throw e; } return new; } - (void)setNode: (OFString*)node_ { OFString *old = node; char *nodepart; Stringprep_rc rc; |
︙ | ︙ |