diff --git a/docs/latex/wx/httag.tex b/docs/latex/wx/httag.tex index 70e6bb48c7..2ed4d07300 100644 --- a/docs/latex/wx/httag.tex +++ b/docs/latex/wx/httag.tex @@ -94,7 +94,7 @@ and name of {\tt } is "TABLE") \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. @@ -103,7 +103,7 @@ parameter exists or not (use \helpref{HasParam}{wxhtmltaghasparam}) first. \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.} \wxheading{Example} diff --git a/include/wx/html/htmltag.h b/include/wx/html/htmltag.h index 0ed5d2a8e6..40bcf48871 100644 --- a/include/wx/html/htmltag.h +++ b/include/wx/html/htmltag.h @@ -94,8 +94,8 @@ public: // enclosed with " // Example :

GetParam("ALIGN") returns (RIGHT) //

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; @@ -103,7 +103,7 @@ public: // 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 diff --git a/src/html/htmltag.cpp b/src/html/htmltag.cpp index 4365a26554..d063137043 100644 --- a/src/html/htmltag.cpp +++ b/src/html/htmltag.cpp @@ -431,12 +431,12 @@ bool wxHtmlTag::HasParam(const wxString& par) const 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(); - if (with_commas) + if (with_quotes) { // VS: backward compatibility, seems to be never used by wxHTML... wxString s;