mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Overhaul for new collection class scheme to improve distributed
objects and NeXT-compatibility. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@947 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7853b9d1b0
commit
f46b4d9b55
16 changed files with 776 additions and 2171 deletions
|
@ -37,6 +37,7 @@
|
|||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSArray.h>
|
||||
#include <Foundation/NSCharacterSet.h>
|
||||
#include <Foundation/NSValue.h>
|
||||
#include <objects/IndexedCollection.h>
|
||||
#include <objects/IndexedCollectionPrivate.h>
|
||||
#include <objects/String.h>
|
||||
|
@ -953,12 +954,10 @@ handle_printf_atsign (FILE *stream,
|
|||
|
||||
@implementation NSString (GNU)
|
||||
|
||||
- (elt) elementAtIndex: (unsigned)index
|
||||
- objectAtIndex: (unsigned)index
|
||||
{
|
||||
elt ret_elt;
|
||||
CHECK_INDEX_RANGE_ERROR(index, [self cStringLength]);
|
||||
ret_elt.char_u = [self _cStringContents][index];
|
||||
return ret_elt;
|
||||
return [NSNumber numberWithChar: [self _cStringContents][index]];
|
||||
}
|
||||
|
||||
/* The rest are handled by the class_add_behavior() call in +initialize. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue