MCPcopy Create free account
hub / github.com/Sigil-Ebook/Sigil / GetGuideSemanticCodeForResource

Method GetGuideSemanticCodeForResource

src/ResourceObjects/OPFResource.cpp:983–992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981}
982
983QString OPFResource::GetGuideSemanticCodeForResource(const Resource *resource, const OPFParser &p, QString tgt_id) const
984{
985 QString gtype;
986 int pos = GetGuideReferenceForResourcePos(resource, p, tgt_id);
987 if (pos > -1) {
988 GuideEntry ge = p.m_guide.at(pos);
989 gtype = ge.m_type;
990 }
991 return gtype;
992}
993
994int OPFResource::GetGuideReferenceForResourcePos(const Resource *resource, const OPFParser &p, QString tgt_id) const
995{

Callers 2

foreachFunction · 0.80
AddSemanticCodeMethod · 0.80

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected