Based on patches by Philip Moetteli

<Philip.Moetteli@tele2.ch>.
	* Headers/Additions/GNUstepBase/GSCategories.h: Added
	NSKoreanEUCEncoding.
	* Headers/Additions/GNUstepBase/GSLock.h
	* Headers/Additions/GNUstepBase/GSLocale.h: Guard includes for
	NeXT_Foundation_LIBRARY.
	* Source/Additions/GSLock.m: Include GNUstepBase/GNUstep.h.
	* Headers/Additions/GNUstepBase/GSCategories.h
	* Headers/Foundation/NSString.h:
	(+[NSString stringWithFormat:arguments:]): Move declaration to
	GSCategories.
	* Source/NSString.m
	* Source/Additions/GSCategories.m:
	(+[NSString stringWithFormat:arguments:]): Move implementation
	to Additions.
	* macosx/config.h: Define HAVE_WCHAR_H.
	* macosx/gnustep.pbproj/project.pbxproj: Added GSLock files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18072 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2003-11-10 15:34:52 +00:00
parent 7050e421c7
commit a3601643a6
10 changed files with 83 additions and 11 deletions

View file

@ -617,6 +617,16 @@ static void MD5Transform (unsigned long buf[4], unsigned long const in[16])
*/
@implementation NSString (GSCategories)
/**
* Returns an autoreleased string initialized with -initWithFormat:arguments:.
*/
+ (id) stringWithFormat: (NSString*)format
arguments: (va_list)argList
{
return AUTORELEASE([[self allocWithZone: NSDefaultMallocZone()]
initWithFormat: format arguments: argList]);
}
/**
* Returns a string formed by removing the prefix string from the
* receiver. Raises an exception if the prefix is not present.