~ubuntu-branches/ubuntu/maverick/pango1.0/maverick-proposed

« back to all changes in this revision

Viewing changes to pango/opentype/hb-open-file-private.hh

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-08-11 17:30:40 UTC
  • mfrom: (1.5.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090811173040-zozfegyjkb39sep2
Tags: 1.25.2-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    return get_table (table_index);
104
104
  }
105
105
 
106
 
  unsigned int get_face_count (void) const { return 1; }
 
106
  inline unsigned int get_face_count (void) const { return 1; }
107
107
 
108
108
  public:
109
109
  inline bool sanitize (SANITIZE_ARG_DEF, const void *base) {
136
136
 
137
137
  STATIC_DEFINE_GET_FOR_DATA_CHECK_MAJOR_VERSION (TTCHeader, 1, 2);
138
138
 
139
 
  unsigned int get_face_count (void) const { return table.len; }
 
139
  inline unsigned int get_face_count (void) const { return table.len; }
140
140
 
141
 
  const OpenTypeFontFace& get_face (unsigned int i) const
 
141
  inline const OpenTypeFontFace& get_face (unsigned int i) const
142
142
  {
143
143
    return this+table[i];
144
144
  }
145
145
 
146
 
  bool sanitize (SANITIZE_ARG_DEF) {
 
146
  inline bool sanitize (SANITIZE_ARG_DEF) {
147
147
    SANITIZE_DEBUG ();
148
148
    if (!SANITIZE (version)) return false;
149
149
    if (version.major < 1 || version.major > 2) return true;
175
175
 
176
176
  STATIC_DEFINE_GET_FOR_DATA (OpenTypeFontFile);
177
177
 
178
 
  unsigned int get_face_count (void) const
 
178
  inline unsigned int get_face_count (void) const
179
179
  {
180
180
    switch (tag) {
181
181
    default: return 0;
183
183
    case TTCTag: return TTCHeader::get_for_data (CONST_CHARP(this)).get_face_count ();
184
184
    }
185
185
  }
186
 
  const OpenTypeFontFace& get_face (unsigned int i) const
 
186
  inline const OpenTypeFontFace& get_face (unsigned int i) const
187
187
  {
188
188
    switch (tag) {
189
189
    default: return Null(OpenTypeFontFace);
202
202
    return ((const char*) this) + table.offset;
203
203
  }
204
204
 
205
 
  bool sanitize (SANITIZE_ARG_DEF) {
 
205
  inline bool sanitize (SANITIZE_ARG_DEF) {
206
206
    SANITIZE_DEBUG ();
207
207
    if (!SANITIZE_SELF ()) return false;
208
208
    switch (tag) {