mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Fixed dumb modification
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8002 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a4530c1a88
commit
98184957c3
2 changed files with 23 additions and 23 deletions
|
@ -328,6 +328,29 @@ enum {
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_GNUSTEP
|
#ifndef NO_GNUSTEP
|
||||||
|
/*
|
||||||
|
* Private concrete string classes.
|
||||||
|
* NB. All these concrete string classes MUST have the same initial ivar
|
||||||
|
* layout so that we can swap between them as necessary.
|
||||||
|
* The initial layout must also match that of NXConstantString (which is
|
||||||
|
* determined by the compiler).
|
||||||
|
*/
|
||||||
|
@interface GSString : NSString
|
||||||
|
{
|
||||||
|
union {
|
||||||
|
unichar *u;
|
||||||
|
unsigned char *c;
|
||||||
|
} _contents;
|
||||||
|
unsigned int _count;
|
||||||
|
struct {
|
||||||
|
unsigned int wide: 1; // 16-bit characters in string?
|
||||||
|
unsigned int free: 1; // Should free memory?
|
||||||
|
unsigned int unused: 2;
|
||||||
|
unsigned int hash: 28;
|
||||||
|
} _flags;
|
||||||
|
}
|
||||||
|
@end
|
||||||
|
|
||||||
@interface NSString (GSString)
|
@interface NSString (GSString)
|
||||||
- (NSString*) stringWithoutSuffix: (NSString*)_suffix;
|
- (NSString*) stringWithoutSuffix: (NSString*)_suffix;
|
||||||
- (NSString*) stringWithoutPrefix: (NSString*)_prefix;
|
- (NSString*) stringWithoutPrefix: (NSString*)_prefix;
|
||||||
|
|
|
@ -57,29 +57,6 @@
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
/*
|
|
||||||
* Private concrete string classes.
|
|
||||||
* NB. All these concrete string classes MUST have the same initial ivar
|
|
||||||
* layout so that we can swap between them as necessary.
|
|
||||||
* The initial layout must also match that of NXConstantString (which is
|
|
||||||
* determined by the compiler).
|
|
||||||
*/
|
|
||||||
@interface GSString : NSString
|
|
||||||
{
|
|
||||||
union {
|
|
||||||
unichar *u;
|
|
||||||
unsigned char *c;
|
|
||||||
} _contents;
|
|
||||||
unsigned int _count;
|
|
||||||
struct {
|
|
||||||
unsigned int wide: 1; // 16-bit characters in string?
|
|
||||||
unsigned int free: 1; // Should free memory?
|
|
||||||
unsigned int unused: 2;
|
|
||||||
unsigned int hash: 28;
|
|
||||||
} _flags;
|
|
||||||
}
|
|
||||||
@end
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GSCString - concrete class for strings using 8-bit character sets.
|
* GSCString - concrete class for strings using 8-bit character sets.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue