Update character sets

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4052 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 1999-04-09 15:34:49 +00:00
parent b59d99a67d
commit 774d64b475
15 changed files with 31 additions and 15 deletions

View file

@ -1,3 +1,9 @@
1999-04-09 Adam Fedor <fedor@gnu.org>
* NSCharacterSets: Updated sets to Version 2.1.8
* Souce/NSCharacterSet.m: Updated to reflect new names of character
sets.
1999-04-08 Adam Fedor <fedor@gnu.org>
* configure.in: Remove test for libobjc.a

View file

@ -40,6 +40,7 @@
+ (NSCharacterSet *)lowercaseLetterCharacterSet;
+ (NSCharacterSet *)nonBaseCharacterSet;
+ (NSCharacterSet *)punctuationCharacterSet;
+ (NSCharacterSet *)symbolAndOperatorCharacterSet;
+ (NSCharacterSet *)uppercaseLetterCharacterSet;
+ (NSCharacterSet *)whitespaceAndNewlineCharacterSet;
+ (NSCharacterSet *)whitespaceCharacterSet;

View file

@ -4,9 +4,15 @@
character sets.
These file were generated automatically from the the latest version
of the Unicode character set by unisort. The Unicode character set is
stored in electronic form as UnicodeData-1.1.4.txt from ftp://unicode.org
of the Unicode character set by unisort. The Unicode character set
can be obtained from http://www.unicode.org
Contact Adam Fedor <fedor@colorado.edu> for more information on the
unisort program.
The current character sets are based on UnicodeData-2.1.8.txt.
NOTE: There are a number of differences between these sets and the
sets provided by NeXT in their OPENSTEP system. It may be because
I haven't read all the Unicode documentation and don't completly
understand the classifications. In any case, the differences seem
relatively minor and confined to the upper reaches of the Unicode
character set (characters usually pertaining to relatively rare
languages -- at least for computer users).

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -33,7 +33,7 @@
static NSString* NSCharacterSet_PATH = @"gnustep/NSCharacterSets";
/* A simple array for caching standard bitmap sets */
#define MAX_STANDARD_SETS 12
#define MAX_STANDARD_SETS 15
static NSCharacterSet* cache_set[MAX_STANDARD_SETS];
static NSLock* cache_lock = nil;
@ -189,7 +189,7 @@ static NSLock* cache_lock = nil;
+ (NSCharacterSet *)alphanumericCharacterSet
{
return [self _bitmapForSet: @"alphanumCharSet" number: 0];
return [self _bitmapForSet: @"alphanumericCharSet" number: 0];
}
+ (NSCharacterSet *)controlCharacterSet
@ -199,34 +199,32 @@ static NSLock* cache_lock = nil;
+ (NSCharacterSet *)decimalDigitCharacterSet
{
return [self _bitmapForSet: @"decimalCharSet" number: 2];
return [self _bitmapForSet: @"decimalDigitCharSet" number: 2];
}
+ (NSCharacterSet *)decomposableCharacterSet
{
fprintf(stderr, "Warning: Decomposable set not yet fully specified\n");
return [self _bitmapForSet: @"decomposableCharSet" number: 3];
}
+ (NSCharacterSet *)illegalCharacterSet
{
fprintf(stderr, "Warning: Illegal set not yet fully specified\n");
return [self _bitmapForSet: @"illegalCharSet" number: 4];
}
+ (NSCharacterSet *)letterCharacterSet
{
return [self _bitmapForSet: @"lettercharCharSet" number: 5];
return [self _bitmapForSet: @"letterCharSet" number: 5];
}
+ (NSCharacterSet *)lowercaseLetterCharacterSet
{
return [self _bitmapForSet: @"lowercaseCharSet" number: 6];
return [self _bitmapForSet: @"lowercaseLetterCharSet" number: 6];
}
+ (NSCharacterSet *)nonBaseCharacterSet
{
return [self _bitmapForSet: @"nonbaseCharSet" number: 7];
return [self _bitmapForSet: @"nonBaseCharSet" number: 7];
}
+ (NSCharacterSet *)punctuationCharacterSet;
@ -234,19 +232,24 @@ static NSLock* cache_lock = nil;
return [self _bitmapForSet: @"punctuationCharSet" number: 8];
}
+ (NSCharacterSet *)symbolAndOperatorCharacterSet;
{
return [self _bitmapForSet: @"symbolAndOperatorCharSet" number: 9];
}
+ (NSCharacterSet *)uppercaseLetterCharacterSet
{
return [self _bitmapForSet: @"uppercaseCharSet" number: 9];
return [self _bitmapForSet: @"uppercaseLetterCharSet" number: 10];
}
+ (NSCharacterSet *)whitespaceAndNewlineCharacterSet
{
return [self _bitmapForSet: @"whitespaceandnlCharSet" number: 10];
return [self _bitmapForSet: @"whitespaceAndNlCharSet" number: 11];
}
+ (NSCharacterSet *)whitespaceCharacterSet
{
return [self _bitmapForSet: @"whitespaceCharSet" number: 11];
return [self _bitmapForSet: @"whitespaceCharSet" number: 12];
}
// Creating custom character sets