mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([String +stringWithCStringNoCopy:freeWhenDone:f]): New method.
([String +stringWithCStringNoCopy:]): New method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@758 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b6e25349a0
commit
9ee80cff17
1 changed files with 14 additions and 0 deletions
|
@ -193,6 +193,20 @@
|
|||
autorelease];
|
||||
}
|
||||
|
||||
+ stringWithCStringNoCopy: (const char*)aCharPtr
|
||||
freeWhenDone: (BOOL) f
|
||||
{
|
||||
return [[[CString alloc]
|
||||
initWithCStringNoCopy:aCharPtr
|
||||
freeWhenDone: f]
|
||||
autorelease];
|
||||
}
|
||||
|
||||
+ stringWithCStringNoCopy: (const char*)aCharPtr
|
||||
{
|
||||
return [self stringWithCStringNoCopy:aCharPtr
|
||||
freeWhenDone: YES];
|
||||
}
|
||||
|
||||
- stringByAppendingFormat: (id <String>)aString, ...
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue