changeset 10 | 82a37ccf6b8c |
parent 8 | 5588347dfcbd |
child 11 | e5976864dfe9 |
1.1 --- a/CollectionUtils.m Wed May 07 16:47:44 2008 -0700 1.2 +++ b/CollectionUtils.m Tue May 20 17:40:28 2008 -0700 1.3 @@ -171,6 +171,15 @@ 1.4 } 1.5 1.6 1.7 +NSString* $string( const char *utf8Str ) 1.8 +{ 1.9 + if( utf8Str ) 1.10 + return [NSString stringWithCString: utf8Str encoding: NSUTF8StringEncoding]; 1.11 + else 1.12 + return nil; 1.13 +} 1.14 + 1.15 + 1.16 @implementation NSArray (MYUtils) 1.17 1.18 - (BOOL) my_containsObjectIdenticalTo: (id)object