~ubuntu-branches/ubuntu/karmic/gnustep-base/karmic

« back to all changes in this revision

Viewing changes to Headers/gnustep/base/NSBitmapCharSet.h

  • Committer: Bazaar Package Importer
  • Author(s): Eric Heintzmann
  • Date: 2005-04-17 00:14:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050417001438-enf0y07c9tku85z1
Tags: 1.10.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Interface for NSBitmapCharSet for GNUStep
2
 
   Copyright (C) 1995 Free Software Foundation, Inc.
3
 
 
4
 
   Written by:  Adam Fedor <fedor@boulder.colorado.edu>
5
 
   Date: 1995
6
 
 
7
 
   This file is part of the GNUstep Base Library.
8
 
 
9
 
   This library is free software; you can redistribute it and/or
10
 
   modify it under the terms of the GNU Library General Public
11
 
   License as published by the Free Software Foundation; either
12
 
   version 2 of the License, or (at your option) any later version.
13
 
   
14
 
   This library is distributed in the hope that it will be useful,
15
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
 
   Library General Public License for more details.
18
 
   
19
 
   You should have received a copy of the GNU Library General Public
20
 
   License along with this library; if not, write to the Free
21
 
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
22
 
   */ 
23
 
 
24
 
#ifndef __NSBitmapCharSet_h_GNUSTEP_BASE_INCLUDE
25
 
#define __NSBitmapCharSet_h_GNUSTEP_BASE_INCLUDE
26
 
 
27
 
#include <Foundation/NSCharacterSet.h>
28
 
#include <Foundation/NSData.h>
29
 
 
30
 
#define UNICODE_SIZE    65536
31
 
#define BITMAP_SIZE     UNICODE_SIZE/8
32
 
 
33
 
#ifndef SETBIT
34
 
#define SETBIT(a,i)     ((a) |= 1<<(i))
35
 
#define CLRBIT(a,i)     ((a) &= ~(1<<(i)))
36
 
#define ISSET(a,i)      ((((a) & (1<<(i)))) > 0) ? YES : NO;
37
 
#endif
38
 
 
39
 
@interface NSBitmapCharSet : NSCharacterSet
40
 
{
41
 
  char _data[BITMAP_SIZE];
42
 
}
43
 
 
44
 
- (id) initWithBitmap: (NSData*)bitmap;
45
 
 
46
 
@end
47
 
 
48
 
@interface NSMutableBitmapCharSet : NSMutableCharacterSet
49
 
{
50
 
  char _data[BITMAP_SIZE];
51
 
}
52
 
 
53
 
- (id) initWithBitmap: (NSData*)bitmap;
54
 
 
55
 
@end
56
 
 
57
 
#endif /* __NSBitmapCharSet_h_GNUSTEP_BASE_INCLUDE */