~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/poppler/poppler/NameToCharCode.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

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