marked const wxHtmlEntitiesParser methods as such
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -262,16 +262,16 @@ public:
|
||||
|
||||
// Parses entities in input and replaces them with respective characters
|
||||
// (with respect to output encoding)
|
||||
wxString Parse(const wxString& input);
|
||||
wxString Parse(const wxString& input) const;
|
||||
|
||||
// Returns character for given entity or 0 if the enity is unknown
|
||||
wxChar GetEntityChar(const wxString& entity);
|
||||
wxChar GetEntityChar(const wxString& entity) const;
|
||||
|
||||
// Returns character that represents given Unicode code
|
||||
#if wxUSE_UNICODE
|
||||
wxChar GetCharForCode(unsigned code) { return (wxChar)code; }
|
||||
wxChar GetCharForCode(unsigned code) const { return (wxChar)code; }
|
||||
#else
|
||||
wxChar GetCharForCode(unsigned code);
|
||||
wxChar GetCharForCode(unsigned code) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
@@ -474,7 +474,7 @@ void wxHtmlEntitiesParser::SetEncoding(wxFontEncoding encoding)
|
||||
#endif
|
||||
}
|
||||
|
||||
wxString wxHtmlEntitiesParser::Parse(const wxString& input)
|
||||
wxString wxHtmlEntitiesParser::Parse(const wxString& input) const
|
||||
{
|
||||
const wxChar *c, *last;
|
||||
const wxChar *in_str = input.c_str();
|
||||
@@ -520,7 +520,7 @@ wxString wxHtmlEntitiesParser::Parse(const wxString& input)
|
||||
}
|
||||
|
||||
#if !wxUSE_UNICODE
|
||||
wxChar wxHtmlEntitiesParser::GetCharForCode(unsigned code)
|
||||
wxChar wxHtmlEntitiesParser::GetCharForCode(unsigned code) const
|
||||
{
|
||||
#if wxUSE_WCHAR_T
|
||||
char buf[2];
|
||||
@@ -552,7 +552,7 @@ extern "C" int LINKAGEMODE wxHtmlEntityCompare(const void *key, const void *item
|
||||
#endif
|
||||
}
|
||||
|
||||
wxChar wxHtmlEntitiesParser::GetEntityChar(const wxString& entity)
|
||||
wxChar wxHtmlEntitiesParser::GetEntityChar(const wxString& entity) const
|
||||
{
|
||||
unsigned code = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user