git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48513
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
\membersection{wxHtmlTag::GetParam}\label{wxhtmltaggetparam}
\membersection{wxHtmlTag::GetParam}\label{wxhtmltaggetparam}
-\constfunc{wxString}{GetParam}{\param{const wxString\& }{par}, \param{bool }{with\_commas = false}}
+\constfunc{wxString}{GetParam}{\param{const wxString\& }{par}, \param{bool }{with\_quotes = false}}
Returns the value of the parameter. You should check whether the
parameter exists or not (use \helpref{HasParam}{wxhtmltaghasparam}) first.
Returns the value of the parameter. You should check whether the
parameter exists or not (use \helpref{HasParam}{wxhtmltaghasparam}) first.
\docparam{par}{The parameter's name.}
\docparam{par}{The parameter's name.}
-\docparam{with\_commas}{true if you want to get commas as well. See example.}
+\docparam{with\_quotes}{true if you want to get quotes as well. See example.}
// enclosed with "
// Example : <P align=right> GetParam("ALIGN") returns (RIGHT)
// <P IMG SRC="WhaT.jpg"> GetParam("SRC") returns (WhaT.jpg)
// enclosed with "
// Example : <P align=right> GetParam("ALIGN") returns (RIGHT)
// <P IMG SRC="WhaT.jpg"> GetParam("SRC") returns (WhaT.jpg)
- // (or ("WhaT.jpg") if with_commas == true)
- wxString GetParam(const wxString& par, bool with_commas = false) const;
+ // (or ("WhaT.jpg") if with_quotes == true)
+ wxString GetParam(const wxString& par, bool with_quotes = false) const;
// Convenience functions:
bool GetParamAsColour(const wxString& par, wxColour *clr) const;
// Convenience functions:
bool GetParamAsColour(const wxString& par, wxColour *clr) const;
// Scans param like scanf() functions family does.
// Example : ScanParam("COLOR", "\"#%X\"", &clr);
// Scans param like scanf() functions family does.
// Example : ScanParam("COLOR", "\"#%X\"", &clr);
- // This is always with with_commas=false
+ // This is always with with_quotes=false
// Returns number of scanned values
// (like sscanf() does)
// NOTE: unlike scanf family, this function only accepts
// Returns number of scanned values
// (like sscanf() does)
// NOTE: unlike scanf family, this function only accepts
return (m_ParamNames.Index(par, false) != wxNOT_FOUND);
}
return (m_ParamNames.Index(par, false) != wxNOT_FOUND);
}
-wxString wxHtmlTag::GetParam(const wxString& par, bool with_commas) const
+wxString wxHtmlTag::GetParam(const wxString& par, bool with_quotes) const
{
int index = m_ParamNames.Index(par, false);
if (index == wxNOT_FOUND)
return wxGetEmptyString();
{
int index = m_ParamNames.Index(par, false);
if (index == wxNOT_FOUND)
return wxGetEmptyString();
{
// VS: backward compatibility, seems to be never used by wxHTML...
wxString s;
{
// VS: backward compatibility, seems to be never used by wxHTML...
wxString s;