mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
Tidied for STRICT_OPENSTEP and STRICT_MACOS_X
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3194 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0e142523e6
commit
d6e2e012d9
7 changed files with 31 additions and 23 deletions
|
@ -1,5 +1,5 @@
|
|||
/* NSCharacterSet - Character set holder
|
||||
Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
Date: Apr 1995
|
||||
|
@ -295,6 +295,17 @@ static NSLock* cache_lock = nil;
|
|||
return [self characterSetWithBitmapRepresentation:bitmap];
|
||||
}
|
||||
|
||||
+ (NSCharacterSet *)characterSetWithContentsOfFile: (NSString *)aFile
|
||||
{
|
||||
if ([@"bitmap" isEqual: [aFile pathExtension]])
|
||||
{
|
||||
NSData *bitmap = [NSData dataWithContentsOfFile: aFile];
|
||||
return [self characterSetWithBitmapRepresentation: bitmap];
|
||||
}
|
||||
else
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSData *)bitmapRepresentation
|
||||
{
|
||||
[self subclassResponsibility:_cmd];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue