~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to src/xpdflib/nametocharcode.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2005-02-24 22:09:16 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050224220916-9vxiiqjz066r5489
Tags: 6.0pre23-2
debian/control: Ipe should depend on exact version of libipe.
Closes: #296771.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -*- C++ -*-
2
 
//========================================================================
3
 
//
4
 
// NameToCharCode.h
5
 
//
6
 
// Copyright 2001-2002 Glyph & Cog, LLC
7
 
//
8
 
//========================================================================
9
 
 
10
 
#ifndef NAMETOCHARCODE_H
11
 
#define NAMETOCHARCODE_H
12
 
 
13
 
#include "aconf.h"
14
 
 
15
 
#ifdef USE_GCC_PRAGMAS
16
 
#pragma interface
17
 
#endif
18
 
 
19
 
#include "chartypes.h"
20
 
 
21
 
struct NameToCharCodeEntry;
22
 
 
23
 
//------------------------------------------------------------------------
24
 
 
25
 
class NameToCharCode {
26
 
public:
27
 
 
28
 
  NameToCharCode();
29
 
  ~NameToCharCode();
30
 
 
31
 
  void add(char *name, CharCode c);
32
 
  CharCode lookup(char *name);
33
 
 
34
 
private:
35
 
 
36
 
  int hash(char *name);
37
 
 
38
 
  NameToCharCodeEntry *tab;
39
 
  int size;
40
 
  int len;
41
 
};
42
 
 
43
 
#endif