Coverage Report

Created: 2025-08-29 06:30

/src/harfbuzz/src/OT/Layout/GPOS/CursivePos.hh
Line
Count
Source (jump to first uncovered line)
1
#ifndef OT_LAYOUT_GPOS_CURSIVEPOS_HH
2
#define OT_LAYOUT_GPOS_CURSIVEPOS_HH
3
4
#include "CursivePosFormat1.hh"
5
6
namespace OT {
7
namespace Layout {
8
namespace GPOS_impl {
9
10
struct CursivePos
11
{
12
  protected:
13
  union {
14
  HBUINT16              format;         /* Format identifier */
15
  CursivePosFormat1     format1;
16
  } u;
17
18
  public:
19
  template <typename context_t, typename ...Ts>
20
  typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
21
60.3k
  {
22
60.3k
    if (unlikely (!c->may_dispatch (this, &u.format))) return c->no_dispatch_return_value ();
23
59.4k
    TRACE_DISPATCH (this, u.format);
24
59.4k
    switch (u.format) {
25
5.53k
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
26
53.8k
    default:return_trace (c->default_return_value ());
27
59.4k
    }
28
59.4k
  }
Unexecuted instantiation: OT::hb_intersects_context_t::return_t OT::Layout::GPOS_impl::CursivePos::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::CursivePos::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::CursivePos::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::CursivePos::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::CursivePos::dispatch<hb_subset_context_t>(hb_subset_context_t*) const
hb_sanitize_context_t::return_t OT::Layout::GPOS_impl::CursivePos::dispatch<hb_sanitize_context_t>(hb_sanitize_context_t*) const
Line
Count
Source
21
60.3k
  {
22
60.3k
    if (unlikely (!c->may_dispatch (this, &u.format))) return c->no_dispatch_return_value ();
23
59.4k
    TRACE_DISPATCH (this, u.format);
24
59.4k
    switch (u.format) {
25
5.53k
    case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
26
53.8k
    default:return_trace (c->default_return_value ());
27
59.4k
    }
28
59.4k
  }
Unexecuted instantiation: OT::hb_collect_variation_indices_context_t::return_t OT::Layout::GPOS_impl::CursivePos::dispatch<OT::hb_collect_variation_indices_context_t>(OT::hb_collect_variation_indices_context_t*) const
Unexecuted instantiation: OT::hb_accelerate_subtables_context_t::return_t OT::Layout::GPOS_impl::CursivePos::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::CursivePos::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
29
};
30
31
}
32
}
33
}
34
35
#endif /* OT_LAYOUT_GPOS_CURSIVEPOS_HH */