doYouReallyThinkThatSuchNameRocks?

By farcaller June 1st, 2008

While writing a parser for generic queries I’ve discovered a very useful method of NSString named stringByReplacingPercentEscapesUsingEncoding. Yeah, I can agree that such method name fully describes what it does, but geez, the source is so hard to read!
[d setValue:
[[s
substringFromIndex:r.location+1] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]
forKey:
[[s
substringToIndex:r.location] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]
];

This entry was posted on Sunday, June 1st, 2008 at 19:20 and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply