mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
(copy, mutableCopy): New methods.
Remove String protocol from MutableString protocol. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@111 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d291870aee
commit
71faa85784
2 changed files with 22 additions and 16 deletions
|
@ -52,13 +52,6 @@ typedef unsigned short Character;
|
|||
//- initWithStream: (Stream*)aStream;
|
||||
//- initWithStream: (Stream*)aStream length: (unsigned)aLength;
|
||||
|
||||
// GETTING C CHARS;
|
||||
- (char) charAtIndex: (unsigned)index;
|
||||
- (const char *) cString;
|
||||
- (unsigned) cStringLength;
|
||||
- (void) getCString: (char*)buffer;
|
||||
- (void) getCString: (char*)buffer range: (IndexRange)aRange;
|
||||
|
||||
// GETTING NEW, AUTORELEASED STRING OBJECTS, NO NEED TO RELEASE THESE;
|
||||
+ (String*) stringWithString: (String*)aString;
|
||||
+ (String*) stringWithString: (String*)aString range: (IndexRange)aRange;
|
||||
|
@ -83,6 +76,9 @@ typedef unsigned short Character;
|
|||
//- (String*) lowercaseString;
|
||||
//- (String*) uppercaseString;
|
||||
|
||||
- mutableCopy;
|
||||
- copy;
|
||||
|
||||
// QUERYING
|
||||
- (unsigned) length;
|
||||
- (IndexRange) range;
|
||||
|
@ -96,6 +92,13 @@ typedef unsigned short Character;
|
|||
//- (unsigned) indexOfCharacter: (Character)aChar;
|
||||
//- (unsigned) indexOfLastCharacter: (Character)aChar;
|
||||
|
||||
// GETTING C CHARS;
|
||||
- (char) charAtIndex: (unsigned)index;
|
||||
- (const char *) cString;
|
||||
- (unsigned) cStringLength;
|
||||
- (void) getCString: (char*)buffer;
|
||||
- (void) getCString: (char*)buffer range: (IndexRange)aRange;
|
||||
|
||||
// FOR FILE NAMES (don't use the name "path", gnu will not use it for this);
|
||||
//- (IndexRange) fileRange;
|
||||
//- (IndexRange) directoriesRange;
|
||||
|
@ -106,7 +109,7 @@ typedef unsigned short Character;
|
|||
|
||||
@end
|
||||
|
||||
@protocol MutableString <String, ValueHolding>
|
||||
@protocol MutableString <ValueHolding>
|
||||
|
||||
+ (MutableString*) stringWithCapacity: (unsigned)capacity;
|
||||
- initWithCapacity: (unsigned)capacity;
|
||||
|
|
|
@ -52,13 +52,6 @@ typedef unsigned short Character;
|
|||
//- initWithStream: (Stream*)aStream;
|
||||
//- initWithStream: (Stream*)aStream length: (unsigned)aLength;
|
||||
|
||||
// GETTING C CHARS;
|
||||
- (char) charAtIndex: (unsigned)index;
|
||||
- (const char *) cString;
|
||||
- (unsigned) cStringLength;
|
||||
- (void) getCString: (char*)buffer;
|
||||
- (void) getCString: (char*)buffer range: (IndexRange)aRange;
|
||||
|
||||
// GETTING NEW, AUTORELEASED STRING OBJECTS, NO NEED TO RELEASE THESE;
|
||||
+ (String*) stringWithString: (String*)aString;
|
||||
+ (String*) stringWithString: (String*)aString range: (IndexRange)aRange;
|
||||
|
@ -83,6 +76,9 @@ typedef unsigned short Character;
|
|||
//- (String*) lowercaseString;
|
||||
//- (String*) uppercaseString;
|
||||
|
||||
- mutableCopy;
|
||||
- copy;
|
||||
|
||||
// QUERYING
|
||||
- (unsigned) length;
|
||||
- (IndexRange) range;
|
||||
|
@ -96,6 +92,13 @@ typedef unsigned short Character;
|
|||
//- (unsigned) indexOfCharacter: (Character)aChar;
|
||||
//- (unsigned) indexOfLastCharacter: (Character)aChar;
|
||||
|
||||
// GETTING C CHARS;
|
||||
- (char) charAtIndex: (unsigned)index;
|
||||
- (const char *) cString;
|
||||
- (unsigned) cStringLength;
|
||||
- (void) getCString: (char*)buffer;
|
||||
- (void) getCString: (char*)buffer range: (IndexRange)aRange;
|
||||
|
||||
// FOR FILE NAMES (don't use the name "path", gnu will not use it for this);
|
||||
//- (IndexRange) fileRange;
|
||||
//- (IndexRange) directoriesRange;
|
||||
|
@ -106,7 +109,7 @@ typedef unsigned short Character;
|
|||
|
||||
@end
|
||||
|
||||
@protocol MutableString <String, ValueHolding>
|
||||
@protocol MutableString <ValueHolding>
|
||||
|
||||
+ (MutableString*) stringWithCapacity: (unsigned)capacity;
|
||||
- initWithCapacity: (unsigned)capacity;
|
||||
|
|
Loading…
Reference in a new issue