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:
Richard Frith-MacDonald 2001-02-05 09:28:19 +00:00
parent 86fc747a2c
commit 02ebb24e52
8 changed files with 752 additions and 512 deletions

View file

@ -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];