Reorganize GSString class hierarchy. Update users.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18050 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2003-11-05 02:11:49 +00:00
parent b75764eba4
commit f97029e9b2
4 changed files with 315 additions and 228 deletions

View file

@ -45,9 +45,11 @@
@class GSMutableDictionary;
@class NSDataMalloc;
@class GSInlineArray;
@class GSMutableArray;
@class GSMutableArray;
@class GSCString;
@class GSCBufferString;
@class GSUnicodeString;
@class GSUnicodeBufferString;
@class GSMutableString;
/*
@ -100,7 +102,8 @@ static char st_number = (char)ST_NUMBER;
/*
* Variables to cache class information.
* Variables to cache class information. These are used to check how
* an instance should be serialized.
*/
static Class ArrayClass = 0;
static Class MutableArrayClass = 0;
@ -421,10 +424,12 @@ static BOOL shouldBeCompact = NO;
/*
* Variables to cache class information.
*/
static BOOL uniquing = NO; /* Make incoming strings unique */
/*
* Variables to cache class information. These are used to create instances
* when deserializing.
*/
static Class MACls = 0; /* Mutable Array */
static Class DCls = 0; /* Data */
static Class MDCls = 0; /* Mutable Dictionary */
@ -818,8 +823,8 @@ deserializeFromInfo(_NSDeserializerInfo* info)
MACls = [GSMutableArray class];
DCls = [NSDataMalloc class];
MDCls = [GSMutableDictionary class];
USCls = [GSUnicodeString class];
CSCls = [GSCString class];
USCls = [GSUnicodeBufferString class];
CSCls = [GSCBufferString class];
csInitImp = [CSCls instanceMethodForSelector: csInitSel];
usInitImp = [USCls instanceMethodForSelector: usInitSel];
dInitImp = [DCls instanceMethodForSelector: dInitSel];