Coverage Report

Created: 2026-01-09 06:12

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/harfbuzz/src/OT/Layout/GPOS/MarkLigPos.hh
Line
Count
Source
1
#ifndef OT_LAYOUT_GPOS_MARKLIGPOS_HH
2
#define OT_LAYOUT_GPOS_MARKLIGPOS_HH
3
4
#include "MarkLigPosFormat1.hh"
5
6
namespace OT {
7
namespace Layout {
8
namespace GPOS_impl {
9
10
struct MarkLigPos
11
{
12
  protected:
13
  union {
14
  struct { HBUINT16 v; }    format;         /* Format identifier */
15
  MarkLigPosFormat1_2<SmallTypes> format1;
16
#ifndef HB_NO_BEYOND_64K
17
  MarkLigPosFormat1_2<MediumTypes>  format2;
18
#endif
19
  } u;
20
21
  public:
22
  template <typename context_t, typename ...Ts>
23
  typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
24
46.0k
  {
25
46.0k
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
45.8k
    TRACE_DISPATCH (this, u.format.v);
27
45.8k
    switch (u.format.v) {
28
9.29k
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
29
0
#ifndef HB_NO_BEYOND_64K
30
4.05k
    case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
31
0
#endif
32
32.5k
    default:return_trace (c->default_return_value ());
33
45.8k
    }
34
45.8k
  }
Unexecuted instantiation: OT::hb_intersects_context_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<OT::hb_intersects_context_t>(OT::hb_intersects_context_t*) const
Unexecuted instantiation: OT::hb_ot_apply_context_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<OT::hb_ot_apply_context_t>(OT::hb_ot_apply_context_t*) const
Unexecuted instantiation: OT::hb_collect_glyphs_context_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<OT::hb_collect_glyphs_context_t>(OT::hb_collect_glyphs_context_t*) const
Unexecuted instantiation: OT::hb_closure_lookups_context_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<OT::hb_closure_lookups_context_t>(OT::hb_closure_lookups_context_t*) const
Unexecuted instantiation: hb_subset_context_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<hb_subset_context_t>(hb_subset_context_t*) const
hb_sanitize_context_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<hb_sanitize_context_t>(hb_sanitize_context_t*) const
Line
Count
Source
24
38.0k
  {
25
38.0k
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
37.8k
    TRACE_DISPATCH (this, u.format.v);
27
37.8k
    switch (u.format.v) {
28
7.70k
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
29
0
#ifndef HB_NO_BEYOND_64K
30
2.99k
    case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
31
0
#endif
32
27.1k
    default:return_trace (c->default_return_value ());
33
37.8k
    }
34
37.8k
  }
Unexecuted instantiation: OT::hb_collect_variation_indices_context_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<OT::hb_collect_variation_indices_context_t>(OT::hb_collect_variation_indices_context_t*) const
OT::hb_accelerate_subtables_context_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<OT::hb_accelerate_subtables_context_t>(OT::hb_accelerate_subtables_context_t*) const
Line
Count
Source
24
6.85k
  {
25
6.85k
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
6.85k
    TRACE_DISPATCH (this, u.format.v);
27
6.85k
    switch (u.format.v) {
28
1.17k
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
29
0
#ifndef HB_NO_BEYOND_64K
30
1.04k
    case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
31
0
#endif
32
4.63k
    default:return_trace (c->default_return_value ());
33
6.85k
    }
34
6.85k
  }
Unexecuted instantiation: hb_position_single_dispatch_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<hb_position_single_dispatch_t, hb_font_t*&, hb_blob_t*&, hb_direction_t&, unsigned int&, hb_glyph_position_t&>(hb_position_single_dispatch_t*, hb_font_t*&, hb_blob_t*&, hb_direction_t&, unsigned int&, hb_glyph_position_t&) const
OT::hb_intersects_context_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<OT::hb_intersects_context_t>(OT::hb_intersects_context_t*) const
Line
Count
Source
24
817
  {
25
817
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
817
    TRACE_DISPATCH (this, u.format.v);
27
817
    switch (u.format.v) {
28
266
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
29
0
#ifndef HB_NO_BEYOND_64K
30
6
    case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
31
0
#endif
32
545
    default:return_trace (c->default_return_value ());
33
817
    }
34
817
  }
OT::hb_closure_lookups_context_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<OT::hb_closure_lookups_context_t>(OT::hb_closure_lookups_context_t*) const
Line
Count
Source
24
245
  {
25
245
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
245
    TRACE_DISPATCH (this, u.format.v);
27
245
    switch (u.format.v) {
28
69
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
29
0
#ifndef HB_NO_BEYOND_64K
30
0
    case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
31
0
#endif
32
176
    default:return_trace (c->default_return_value ());
33
245
    }
34
245
  }
hb_subset_context_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<hb_subset_context_t>(hb_subset_context_t*) const
Line
Count
Source
24
80
  {
25
80
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
80
    TRACE_DISPATCH (this, u.format.v);
27
80
    switch (u.format.v) {
28
80
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
29
0
#ifndef HB_NO_BEYOND_64K
30
0
    case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
31
0
#endif
32
0
    default:return_trace (c->default_return_value ());
33
80
    }
34
80
  }
OT::hb_collect_variation_indices_context_t::return_t OT::Layout::GPOS_impl::MarkLigPos::dispatch<OT::hb_collect_variation_indices_context_t>(OT::hb_collect_variation_indices_context_t*) const
Line
Count
Source
24
1
  {
25
1
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
1
    TRACE_DISPATCH (this, u.format.v);
27
1
    switch (u.format.v) {
28
1
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
29
0
#ifndef HB_NO_BEYOND_64K
30
0
    case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
31
0
#endif
32
0
    default:return_trace (c->default_return_value ());
33
1
    }
34
1
  }
35
};
36
37
}
38
}
39
}
40
41
#endif /* OT_LAYOUT_GPOS_MARKLIGPOS_HH */