X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed6d701058e7555fba0764fcf97b475a5052015f..b7c746d017c42dfc5c44adff78b57b18aee90fbc:/include/wx/uri.h diff --git a/include/wx/uri.h b/include/wx/uri.h index b81159a3af..b273c37a12 100644 --- a/include/wx/uri.h +++ b/include/wx/uri.h @@ -5,16 +5,13 @@ // Modified By: // Created: 07/01/2004 // RCS-ID: $Id$ -// Licence: wxWindows +// Copyright: (c) Ryan Norton +// Licence: wxWindows Licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_URI_H_ #define _WX_URI_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "uri.h" -#endif - #include "wx/defs.h" #include "wx/object.h" #include "wx/string.h" @@ -49,9 +46,7 @@ enum wxURIFlags // Generic class for parsing URIs. // -// Originally based off of RFC 2396 - then -// extended to meet the newer RFC 2396.bis -// specifications. +// See RFC 3986 class WXDLLIMPEXP_BASE wxURI : public wxObject { public: @@ -121,9 +116,11 @@ protected: static void Normalize(wxChar* uri, bool bIgnoreLeads = false); static void UpTree(const wxChar* uristart, const wxChar*& uri); + static void UpTree(wxString::const_iterator uristart, + wxString::const_iterator& uri); - static wxChar TranslateEscape(const wxChar* s); - static void Escape (wxString& s, const wxChar& c); + static wxUniChar TranslateEscape(const wxString::const_iterator& s); + static void Escape(wxString& s, const wxChar& c); static bool IsEscape(const wxChar*& uri); static wxChar CharToHex(const wxChar& c);