mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Pseudo terminal support added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8977 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
86fc747a2c
commit
02ebb24e52
8 changed files with 752 additions and 512 deletions
|
@ -2169,8 +2169,19 @@ transmute(ivars self, NSString *aString)
|
|||
NSRange aRange;
|
||||
NSString *t;
|
||||
|
||||
t = (NSString*)NSAllocateObject(NSStringClass, 0, NSDefaultMallocZone());
|
||||
/*
|
||||
* Get the abstract class to give us the default placeholder string.
|
||||
*/
|
||||
t = (NSString*)[NSStringClass allocWithZone: NSDefaultMallocZone()];
|
||||
/*
|
||||
* Now initialise with the format information ... the placeholder
|
||||
* can decide whether to create a concrete C string or unicode string.
|
||||
*/
|
||||
t = [t initWithFormat: format arguments: ap];
|
||||
/*
|
||||
* Now append the created string to this one ... the appending
|
||||
* method will make this string wide if necessary.
|
||||
*/
|
||||
aRange.location = _count;
|
||||
aRange.length = 0;
|
||||
[self replaceCharactersInRange: aRange withString: t];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue