stringByTrimmingCharactersInSet: Bug
stringByTrimmingCharactersInSet: Bug
- Subject: stringByTrimmingCharactersInSet: Bug
- From: Wesley Miaw <email@hidden>
- Date: Wed, 2 Apr 2003 17:43:08 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Has anyone else encountered this bug with the NSString
stringByTrimmingCharactersInSet:? If I attempt to trim
whitespaceCharacterSet off of a string of one character (e.g. 'a'),
prefixed by zero or more whitespace characters, and followed by no
whitespace characters, then the empty string is returned instead of the
one character. Appending whitespace to this string before calling
stringByTrimmingCharactersInSet: fixes this problem.
- --
Wesley Miaw, Wesley Miaw Consulting
http://www.wesman.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iD8DBQE+i2d/Qv4agqRAk2kRAg12AJ0UbucHdM0IqYI+qsPHBn40LHRvvQCeOX/4
SWm9ZitZuzSJZuxJofqa688=
=39lb
-----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.