X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f66f6a5b3583b02c34854556eb83e3a808524ce..4521f6c88cbefa7f13e3733d344776b795f981e4:/src/html/htmltag.cpp diff --git a/src/html/htmltag.cpp b/src/html/htmltag.cpp index 574b01006e..d507d5373a 100644 --- a/src/html/htmltag.cpp +++ b/src/html/htmltag.cpp @@ -511,6 +511,19 @@ wxString wxHtmlTag::GetParam(const wxString& par, bool with_quotes) const return m_ParamValues[index]; } +bool wxHtmlTag::GetParamAsString(const wxString& par, wxString *str) const +{ + wxCHECK_MSG( str, false, wxT("NULL output string argument") ); + + int index = m_ParamNames.Index(par, false); + if (index == wxNOT_FOUND) + return false; + + *str = m_ParamValues[index]; + + return true; +} + int wxHtmlTag::ScanParam(const wxString& par, const char *format, void *param) const