]> git.saurik.com Git - wxWidgets.git/commitdiff
marked const wxHtmlEntitiesParser methods as such
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 20 Aug 2007 20:08:40 +0000 (20:08 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 20 Aug 2007 20:08:40 +0000 (20:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/html/htmlpars.h
src/html/htmlpars.cpp

index 2f769eadabfe4ffc6ac0c685b443aed3c3b1c090..66f2de8db413d2670b152ad64fbff9c235a341bf 100644 (file)
@@ -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:
index 9d3bf3cb8e0f61275e9ffc617d6c263b84e48c13..2d3b86f1eeb49b050067dd25d8b04b1a20649275 100644 (file)
@@ -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;