Re: stringByTrimmingCharactersInSet
Re: stringByTrimmingCharactersInSet
- Subject: Re: stringByTrimmingCharactersInSet
- From: "Clark S. Cox III" <email@hidden>
- Date: Fri, 22 Nov 2002 10:38:52 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday, Nov 22, 2002, at 10:22 US/Eastern, Jacob Engstrand wrote:
Hi All,
NSString *before = @"ab";
NSLog(@"before: '%@'", before);
NSString *after = [before stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceCharacterSet]];
NSLog(@"after: '%@'", after);
The above piece of code outputs:
before: 'ab'
after: 'ab'
Which is ok, of course. But changing the first line to:
NSString *before = @"a";
gives the following output:
before: 'a'
after: ''
What gives? Is it me? Am I loosing it? Or is this some bug that
everybody knows about but I?
I came across that a couple of days ago as well. I filed a bug report
on Wednesday, it's problem ID: 3106311.
- --
http://homepage.mac.com/clarkcox3/
email@hidden
Clark S. Cox, III
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iEYEARECAAYFAj3eT5IACgkQd6STocYT1xXpUgCeIizkCVatKldUjXuqOevM+SWf
eDMAn3L1seDDM35T31qLAxDsxoy1D6WV
=NT/k
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.