Aparajita Fishman
ae2ed8bf94
Fixed: empty strings and indexes out of range were not handled
...
Previously CPAttributedString did not provide an -init method,
with the result that an attributed string created with [[CPAttributedString alloc] init]
would not be correctly initialized.
Also, some methods that took indexes into the string were not checking for an invalid index and were not raising exceptions when the documentation said they should.
Finally, some methods that were supposed to return empty dictionaries were returning nil.
This commit fixes all of these problems. Empty strings should no longer cause errors.
Closes #533
2013-02-26 20:15:15 -05:00
..
2013-02-25 20:09:18 -05:00
2013-02-25 18:27:44 +00:00
2013-01-18 14:24:37 +01:00
2012-07-17 15:10:58 -07:00
2013-02-03 08:39:30 +08:00
2013-02-15 12:21:13 -05:00
2013-02-15 12:21:13 -05:00
2013-02-26 20:15:15 -05:00
2010-12-26 01:34:37 +02:00
2013-02-11 23:32:11 -05:00
2013-01-23 23:33:42 +00:00
2013-01-19 16:51:56 +07:00
2012-12-16 17:38:47 +01:00
2012-05-13 14:26:19 +01:00
2012-06-02 13:18:58 -07:00
2013-02-15 12:21:13 -05:00
2013-02-11 14:05:52 -05:00
2013-02-11 14:05:52 -05:00
2013-02-14 11:39:21 -08:00
2010-12-26 01:34:37 +02:00
2013-02-02 11:14:45 +00:00
2013-01-18 14:24:37 +01:00
2011-07-09 17:05:23 -07:00
2010-12-26 01:34:37 +02:00
2013-01-20 19:10:41 +00:00
2011-05-04 19:07:06 +02:00
2013-01-26 01:11:33 +00:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2011-11-23 00:28:27 +00:00
2013-02-25 18:27:44 +00:00
2013-01-18 14:24:37 +01:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2012-12-16 17:38:47 +01:00
2010-12-26 01:34:37 +02:00
2013-02-25 17:02:36 +00:00
2010-12-26 01:34:37 +02:00
2012-12-19 23:51:42 +01:00
2013-02-15 12:21:13 -05:00
2013-01-25 19:19:01 +08:00
2010-12-16 20:20:58 +02:00
2013-01-18 14:24:37 +01:00
2013-01-18 14:24:37 +01:00
2011-01-23 08:43:46 -08:00
2013-01-18 14:24:37 +01:00
2012-07-08 21:26:47 +01:00
2012-07-08 21:26:47 +01:00
2013-01-06 16:21:10 +08:00
2012-05-25 00:04:46 +01:00
2013-01-23 15:45:08 +07:00
2013-01-18 14:24:37 +01:00
2013-01-23 15:45:08 +07:00
2013-01-06 16:21:10 +08:00
2013-01-18 14:24:37 +01:00
2013-01-07 16:04:08 -08:00
2013-02-19 09:47:40 -05:00
2013-02-25 17:02:36 +00:00
2013-01-11 10:53:42 +00:00
2013-02-25 17:02:36 +00:00
2010-12-16 19:16:33 +02:00
2010-12-16 19:16:33 +02:00
2013-02-25 17:02:36 +00:00
2013-02-25 17:02:36 +00:00
2011-10-21 15:55:34 +01:00
2013-02-11 14:08:41 -05:00
2008-09-04 03:52:20 -07:00
2012-07-13 01:28:38 +01:00
2011-05-26 23:59:08 -04:00