Coverage Report

Created: 2025-11-24 06:44

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/harfbuzz/src/OT/Layout/GPOS/MarkBasePos.hh
Line
Count
Source
1
#ifndef OT_LAYOUT_GPOS_MARKBASEPOS_HH
2
#define OT_LAYOUT_GPOS_MARKBASEPOS_HH
3
4
#include "MarkBasePosFormat1.hh"
5
6
namespace OT {
7
namespace Layout {
8
namespace GPOS_impl {
9
10
struct MarkBasePos
11
{
12
  protected:
13
  union {
14
  struct { HBUINT16 v; }    format;         /* Format identifier */
15
  MarkBasePosFormat1_2<SmallTypes>  format1;
16
#ifndef HB_NO_BEYOND_64K
17
  MarkBasePosFormat1_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
30.0k
  {
25
30.0k
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
30.0k
    TRACE_DISPATCH (this, u.format.v);
27
30.0k
    switch (u.format.v) {
28
9.83k
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
29
0
#ifndef HB_NO_BEYOND_64K
30
522
    case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
31
0
#endif
32
19.6k
    default:return_trace (c->default_return_value ());
33
30.0k
    }
34
30.0k
  }
OT::hb_intersects_context_t::return_t OT::Layout::GPOS_impl::MarkBasePos::dispatch<OT::hb_intersects_context_t>(OT::hb_intersects_context_t*) const
Line
Count
Source
24
6.90k
  {
25
6.90k
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
6.90k
    TRACE_DISPATCH (this, u.format.v);
27
6.90k
    switch (u.format.v) {
28
3.10k
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
29
0
#ifndef HB_NO_BEYOND_64K
30
77
    case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
31
0
#endif
32
3.72k
    default:return_trace (c->default_return_value ());
33
6.90k
    }
34
6.90k
  }
Unexecuted instantiation: OT::hb_ot_apply_context_t::return_t OT::Layout::GPOS_impl::MarkBasePos::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::MarkBasePos::dispatch<OT::hb_collect_glyphs_context_t>(OT::hb_collect_glyphs_context_t*) const
OT::hb_closure_lookups_context_t::return_t OT::Layout::GPOS_impl::MarkBasePos::dispatch<OT::hb_closure_lookups_context_t>(OT::hb_closure_lookups_context_t*) const
Line
Count
Source
24
2.08k
  {
25
2.08k
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
2.08k
    TRACE_DISPATCH (this, u.format.v);
27
2.08k
    switch (u.format.v) {
28
1.00k
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
29
0
#ifndef HB_NO_BEYOND_64K
30
40
    case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
31
0
#endif
32
1.04k
    default:return_trace (c->default_return_value ());
33
2.08k
    }
34
2.08k
  }
hb_subset_context_t::return_t OT::Layout::GPOS_impl::MarkBasePos::dispatch<hb_subset_context_t>(hb_subset_context_t*) const
Line
Count
Source
24
984
  {
25
984
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
984
    TRACE_DISPATCH (this, u.format.v);
27
984
    switch (u.format.v) {
28
984
    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
984
    }
34
984
  }
hb_sanitize_context_t::return_t OT::Layout::GPOS_impl::MarkBasePos::dispatch<hb_sanitize_context_t>(hb_sanitize_context_t*) const
Line
Count
Source
24
19.8k
  {
25
19.8k
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
19.7k
    TRACE_DISPATCH (this, u.format.v);
27
19.7k
    switch (u.format.v) {
28
4.47k
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
29
0
#ifndef HB_NO_BEYOND_64K
30
405
    case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
31
0
#endif
32
14.8k
    default:return_trace (c->default_return_value ());
33
19.7k
    }
34
19.7k
  }
OT::hb_collect_variation_indices_context_t::return_t OT::Layout::GPOS_impl::MarkBasePos::dispatch<OT::hb_collect_variation_indices_context_t>(OT::hb_collect_variation_indices_context_t*) const
Line
Count
Source
24
297
  {
25
297
    if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value ();
26
297
    TRACE_DISPATCH (this, u.format.v);
27
297
    switch (u.format.v) {
28
270
    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
27
    default:return_trace (c->default_return_value ());
33
297
    }
34
297
  }
Unexecuted instantiation: OT::hb_accelerate_subtables_context_t::return_t OT::Layout::GPOS_impl::MarkBasePos::dispatch<OT::hb_accelerate_subtables_context_t>(OT::hb_accelerate_subtables_context_t*) const
Unexecuted instantiation: hb_position_single_dispatch_t::return_t OT::Layout::GPOS_impl::MarkBasePos::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
35
};
36
37
}
38
}
39
}
40
41
#endif /* OT_LAYOUT_GPOS_MARKBASEPOS_HH */