~ubuntu-branches/ubuntu/natty/libextractor/natty

« back to all changes in this revision

Viewing changes to src/plugins/pdf/Dict.cc

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-11-17 20:27:32 UTC
  • mfrom: (1.10.4 upstream) (5.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091117202732-ipm2h3gks5bdw2vx
Tags: 0.5.23+dfsg-3
* Building against libltdl7.
* Updating to standards version 3.8.3.
* Adding maintainer homepage field to control.
* Marking maintainer homepage field to be also included in binary
  packages and changelog.
* Adding README.source.
* Simplifying autotools handling in rules.
* Updating README.source.
* Moving maintainer homepage field from control to copyright.
* Dropping la files.
* Simplyfing debhelper install files.
* Bumping versioned build-depends on debhelper.
* Adding depends to dpkg install info.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
  ++length;
55
55
}
56
56
 
57
 
inline DictEntry *Dict::find(char *key) {
 
57
inline DictEntry *Dict::find(const char *key) {
58
58
  int i;
59
59
 
60
60
  for (i = 0; i < length; ++i) {
64
64
  return NULL;
65
65
}
66
66
 
67
 
GBool Dict::is(char *type) {
 
67
GBool Dict::is(const char *type) {
68
68
  DictEntry *e;
69
69
 
70
70
  return (e = find("Type")) && e->val.isName(type);
71
71
}
72
72
 
73
 
Object *Dict::lookup(char *key, Object *obj) {
 
73
Object *Dict::lookup(const char *key, Object *obj) {
74
74
  DictEntry *e;
75
75
 
76
76
  return (e = find(key)) ? e->val.fetch(xref, obj) : obj->initNull();
77
77
}
78
78
 
79
 
Object *Dict::lookupNF(char *key, Object *obj) {
 
79
Object *Dict::lookupNF(const char *key, Object *obj) {
80
80
  DictEntry *e;
81
81
 
82
82
  return (e = find(key)) ? e->val.copy(obj) : obj->initNull();