mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Use -subclassReponsibility instead of -notImplemented.
([String -cStringNoCopy]): New method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@763 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
406d4e465a
commit
8d0219c060
1 changed files with 11 additions and 4 deletions
|
@ -250,7 +250,7 @@
|
|||
/* This is the designated copier */
|
||||
- (char *) cStringCopyRange: (IndexRange)aRange;
|
||||
{
|
||||
[self notImplemented:_cmd];
|
||||
[self subclassResponsibility:_cmd];
|
||||
return "";
|
||||
}
|
||||
|
||||
|
@ -260,6 +260,7 @@
|
|||
return [self cStringCopyRange:((IndexRange){0,aLength})];
|
||||
}
|
||||
|
||||
/* xxx No longer necessary because -cString does the same thing? */
|
||||
- (char *) cStringCopy
|
||||
{
|
||||
return [self cStringCopyRange:((IndexRange){0, [self count]})];
|
||||
|
@ -355,19 +356,25 @@
|
|||
|
||||
- (char) charAtIndex: (unsigned)index
|
||||
{
|
||||
[self notImplemented:_cmd];
|
||||
[self subclassResponsibility:_cmd];
|
||||
return ' ';
|
||||
}
|
||||
|
||||
- (const char *) cString
|
||||
{
|
||||
[self notImplemented:_cmd];
|
||||
[self subclassResponsibility:_cmd];
|
||||
return NULL;
|
||||
}
|
||||
|
||||
- (const char *) cStringNoCopy
|
||||
{
|
||||
[self subclassResponsibility:_cmd];
|
||||
return NULL;
|
||||
}
|
||||
|
||||
- (unsigned) cStringLength
|
||||
{
|
||||
[self notImplemented:_cmd];
|
||||
[self subclassResponbility:_cmd];
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue