mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
More characterset tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20858 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
aeffcad973
commit
71c32633c1
7 changed files with 27 additions and 6 deletions
|
@ -1,7 +1,8 @@
|
|||
2005-03-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Foundation/NSCharacterSet.h: Add documentation and method
|
||||
([-capitalizedLetterCharacterSet])
|
||||
([-capitalizedLetterCharacterSet]) Change name of symbol set to
|
||||
match MacOS-X
|
||||
* Source/NSCharacterSet.m: Add new method and move documentation to
|
||||
header. Include local NSCharacterSetData.h for bitmap data.
|
||||
* Source/NSCharacterSetData.h: New file containing the bitmap data
|
||||
|
@ -11,6 +12,8 @@
|
|||
* Source/GNUmakefile: No longer build/install NSCharacterSets
|
||||
The standard bitmap data for charactersets is now built in to
|
||||
NSCharacterSet.
|
||||
* Headers/Foundation/NSBitmapChar.h: Moved nonstandard header
|
||||
to private source directory.
|
||||
|
||||
2005-03-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -96,10 +96,12 @@
|
|||
*/
|
||||
+ (NSCharacterSet*) punctuationCharacterSet;
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
/**
|
||||
* Returns a character set containing mathematical symbols, etc..
|
||||
*/
|
||||
+ (NSCharacterSet*) symbolAndOperatorCharacterSet;
|
||||
+ (NSCharacterSet*) symbolCharacterSet;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Returns a character set that contains the uppercase characters.
|
||||
|
|
|
@ -38,7 +38,6 @@ NSArchiver.h \
|
|||
NSArray.h \
|
||||
NSAttributedString.h \
|
||||
NSAutoreleasePool.h \
|
||||
NSBitmapCharSet.h \
|
||||
NSBundle.h \
|
||||
NSCalendarDate.h \
|
||||
NSCharacterSet.h \
|
||||
|
|
|
@ -283,7 +283,6 @@ NSArchiver.h \
|
|||
NSArray.h \
|
||||
NSAttributedString.h \
|
||||
NSAutoreleasePool.h \
|
||||
NSBitmapCharSet.h \
|
||||
NSBundle.h \
|
||||
NSByteOrder.h \
|
||||
NSCalendarDate.h \
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Foundation/NSBitmapCharSet.h"
|
||||
#include "NSBitmapCharSet.h"
|
||||
#include "Foundation/NSException.h"
|
||||
#include "Foundation/NSCoder.h"
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include "config.h"
|
||||
#include "GNUstepBase/GSLock.h"
|
||||
#include "Foundation/NSArray.h"
|
||||
#include "Foundation/NSBitmapCharSet.h"
|
||||
#include "Foundation/NSCoder.h"
|
||||
#include "Foundation/NSException.h"
|
||||
#include "Foundation/NSData.h"
|
||||
|
@ -35,9 +34,15 @@
|
|||
#include "Foundation/NSDictionary.h"
|
||||
#include "Foundation/NSThread.h"
|
||||
#include "Foundation/NSNotification.h"
|
||||
#include "Foundation/NSCharacterSet.h"
|
||||
#include "Foundation/NSDebug.h"
|
||||
|
||||
#include "NSBitmapCharSet.h"
|
||||
#include "NSCharacterSetData.h"
|
||||
|
||||
@class NSBitmapCharacterSet;
|
||||
@class NSMutableBitmapCharSet;
|
||||
|
||||
/* A simple array for caching standard bitmap sets */
|
||||
#define MAX_STANDARD_SETS 15
|
||||
static NSCharacterSet *cache_set[MAX_STANDARD_SETS];
|
||||
|
@ -169,8 +174,15 @@ static Class abstractClass = nil;
|
|||
return [self _staticSet: punctuationCharSet number: 8];
|
||||
}
|
||||
|
||||
+ (NSCharacterSet*) symbolCharacterSet
|
||||
{
|
||||
return [self _staticSet: symbolAndOperatorCharSet number: 9];
|
||||
}
|
||||
|
||||
// FIXME ... deprecated ... remove after next release.
|
||||
+ (NSCharacterSet*) symbolAndOperatorCharacterSet
|
||||
{
|
||||
GSOnceMLog(@"symbolAndOperatorCharacterSet is deprecated ... use symbolCharacterSet");
|
||||
return [self _staticSet: symbolAndOperatorCharSet number: 9];
|
||||
}
|
||||
|
||||
|
@ -408,6 +420,12 @@ static Class abstractClass = nil;
|
|||
return AUTORELEASE([[abstractClass performSelector: _cmd] mutableCopy]);
|
||||
}
|
||||
|
||||
+ (NSCharacterSet*) symbolCharacterSet
|
||||
{
|
||||
return AUTORELEASE([[abstractClass performSelector: _cmd] mutableCopy]);
|
||||
}
|
||||
|
||||
// FIXME ... deprecated ... remove after next release.
|
||||
+ (NSCharacterSet*) symbolAndOperatorCharacterSet
|
||||
{
|
||||
return AUTORELEASE([[abstractClass performSelector: _cmd] mutableCopy]);
|
||||
|
|
Loading…
Reference in a new issue