void wxHtmlParser::AddTag(const wxHtmlTag& tag) { bool inner = false; wxHtmlTagHandlersHash::const_iterator h = m_HandlersHash.find(tag.GetName()); if (h != m_HandlersHash.end()) { inner = h->second->HandleTag(tag); if (m_stopParsing) return; } if (!inner) { if (tag.HasEnding()) DoParsing(tag.GetBeginIter(), tag.GetEndIter1()); } }
void wxHtmlParser::AddTag(const wxHtmlTag& tag) { bool inner = false; wxHtmlTagHandlersHash::const_iterator h = m_HandlersHash.find(tag.GetName()); if (h != m_HandlersHash.end()) { inner = h->second->HandleTag(tag); if (m_stopParsing) return; } #if wxDEBUG_LEVEL else if (m_HandlersHash.empty()) { wxFAIL_MSG( "No HTML tag handlers registered, is your program linked " "correctly (you might need to use FORCE_WXHTML_MODULES)?" ); } #endif // wxDEBUG_LEVEL if (!inner) { if (tag.HasEnding()) DoParsing(tag.GetBeginIter(), tag.GetEndIter1()); } }
wxString wxHtmlParser::GetInnerSource(const wxHtmlTag& tag) { return wxString(tag.GetBeginIter(), tag.GetEndIter1()); }