~ubuntu-branches/ubuntu/lucid/pango1.0/lucid-security

« back to all changes in this revision

Viewing changes to pango/opentype/hb-ot-layout-common-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:
412
412
{
413
413
  inline unsigned int operator() (hb_codepoint_t glyph_id) const { return get_coverage (glyph_id); }
414
414
 
415
 
  unsigned int get_coverage (hb_codepoint_t glyph_id) const
 
415
  inline unsigned int get_coverage (hb_codepoint_t glyph_id) const
416
416
  {
417
417
    switch (u.format) {
418
418
    case 1: return u.format1->get_coverage(glyph_id);
421
421
    }
422
422
  }
423
423
 
424
 
  bool sanitize (SANITIZE_ARG_DEF) {
 
424
  inline bool sanitize (SANITIZE_ARG_DEF) {
425
425
    SANITIZE_DEBUG ();
426
426
    if (!SANITIZE (u.format)) return false;
427
427
    switch (u.format) {
528
528
{
529
529
  inline unsigned int operator() (hb_codepoint_t glyph_id) const { return get_class (glyph_id); }
530
530
 
531
 
  hb_ot_layout_class_t get_class (hb_codepoint_t glyph_id) const
 
531
  inline hb_ot_layout_class_t get_class (hb_codepoint_t glyph_id) const
532
532
  {
533
533
    switch (u.format) {
534
534
    case 1: return u.format1->get_class(glyph_id);
537
537
    }
538
538
  }
539
539
 
540
 
  bool sanitize (SANITIZE_ARG_DEF) {
 
540
  inline bool sanitize (SANITIZE_ARG_DEF) {
541
541
    SANITIZE_DEBUG ();
542
542
    if (!SANITIZE (u.format)) return false;
543
543
    switch (u.format) {
565
565
{
566
566
  inline int operator() (unsigned int ppem_size) const { return get_delta (ppem_size); }
567
567
 
568
 
  int get_delta (unsigned int ppem_size) const
 
568
  inline int get_delta (unsigned int ppem_size) const
569
569
  {
570
570
    unsigned int f = deltaFormat;
571
571
    if (HB_UNLIKELY (f < 1 || f > 3))
595
595
    return sizeof (*this) + ((endSize - startSize + (1 << (4 - f)) - 1) >> (4 - f));
596
596
  }
597
597
 
598
 
  bool sanitize (SANITIZE_ARG_DEF) {
 
598
  inline bool sanitize (SANITIZE_ARG_DEF) {
599
599
    SANITIZE_DEBUG ();
600
600
    return SANITIZE_GET_SIZE ();
601
601
  }