replacing control characters in a NSMutableString
replacing control characters in a NSMutableString
- Subject: replacing control characters in a NSMutableString
- From: email@hidden
- Date: Fri, 3 Feb 2006 20:01:03 -0800
I'm writing a category on NSDictionary that will take an NSString of
JSON information and produce a dictionary. Strings in JSON are double-
quote-delimited, but will contain escaped characters. Currently, I
just end up reading them in, so I end up with with this:
input: "\"this is\n a quoted string\""
i parse into: \"this is\n a quoted string\"
what I want is: "this is
a quoted string"
Is there any way to take my NSString/NSMutableString - which has the
\-escaped sequences in it such as \n, \\, \", etc. and replace those
with the appropriate values?
Thanks,
Blake
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden