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
|
// Parses entities in input and replaces them with respective characters
|
||||||
// (with respect to output encoding)
|
// (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
|
// 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
|
// Returns character that represents given Unicode code
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
wxChar GetCharForCode(unsigned code) { return (wxChar)code; }
|
wxChar GetCharForCode(unsigned code) const { return (wxChar)code; }
|
||||||
#else
|
#else
|
||||||
wxChar GetCharForCode(unsigned code);
|
wxChar GetCharForCode(unsigned code) const;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -474,7 +474,7 @@ void wxHtmlEntitiesParser::SetEncoding(wxFontEncoding encoding)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString wxHtmlEntitiesParser::Parse(const wxString& input)
|
wxString wxHtmlEntitiesParser::Parse(const wxString& input) const
|
||||||
{
|
{
|
||||||
const wxChar *c, *last;
|
const wxChar *c, *last;
|
||||||
const wxChar *in_str = input.c_str();
|
const wxChar *in_str = input.c_str();
|
||||||
@@ -520,7 +520,7 @@ wxString wxHtmlEntitiesParser::Parse(const wxString& input)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if !wxUSE_UNICODE
|
#if !wxUSE_UNICODE
|
||||||
wxChar wxHtmlEntitiesParser::GetCharForCode(unsigned code)
|
wxChar wxHtmlEntitiesParser::GetCharForCode(unsigned code) const
|
||||||
{
|
{
|
||||||
#if wxUSE_WCHAR_T
|
#if wxUSE_WCHAR_T
|
||||||
char buf[2];
|
char buf[2];
|
||||||
@@ -552,7 +552,7 @@ extern "C" int LINKAGEMODE wxHtmlEntityCompare(const void *key, const void *item
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
wxChar wxHtmlEntitiesParser::GetEntityChar(const wxString& entity)
|
wxChar wxHtmlEntitiesParser::GetEntityChar(const wxString& entity) const
|
||||||
{
|
{
|
||||||
unsigned code = 0;
|
unsigned code = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user