X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e0e4b2b0e95c737ac7de5d10cf701ad74e34a124..4521f6c88cbefa7f13e3733d344776b795f981e4:/src/html/htmltag.cpp diff --git a/src/html/htmltag.cpp b/src/html/htmltag.cpp index bf5b298a46..d507d5373a 100644 --- a/src/html/htmltag.cpp +++ b/src/html/htmltag.cpp @@ -2,7 +2,6 @@ // Name: src/html/htmltag.cpp // Purpose: wxHtmlTag class (represents single tag) // Author: Vaclav Slavik -// RCS-ID: $Id$ // Copyright: (c) 1999 Vaclav Slavik // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -512,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