Vadim Zeitlin
62e3e6c2bc
fix wxURI::GetUser() for URIs without password; added unit test case for it ( closes #10412 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-21 17:02:11 +00:00
Vadim Zeitlin
5c33522fca
replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:39:52 +00:00
Vadim Zeitlin
c4dbb95303
fix parsing of IP literals in URIs, added test for it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 15:27:10 +00:00
Vadim Zeitlin
2adc95dea3
really fix compilation for PCH-less builds
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-20 12:57:47 +00:00
Vadim Zeitlin
c40fd721e4
compilation fix for PCH-less builds
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-20 12:35:31 +00:00
Vadim Zeitlin
2186321ff5
big wxURI cleanup; it now handles Unicode characters correctly ( #3874 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 23:14:51 +00:00
Vadim Zeitlin
1dbdf191dc
remove another unnecessary memcpy() of string contents to wxStringBufferLength
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-06 21:24:35 +00:00
Vadim Zeitlin
dac131af1d
remove unnecessary memcpy() of string contents to wxStringBufferLength
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-06 21:20:22 +00:00
Václav Slavík
0bf751e7e9
compilation fixes for PCH-less build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 06:10:37 +00:00
Václav Slavík
8650108199
don't use implicit wxString->char*/wchar_t* conversion, it will not be available in wxUSE_STL build in the future
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:42:41 +00:00
Václav Slavík
817270659e
initial version of UTF-8 strings representation (still converting to wchar_t* a lot); it has to be explicitly enabled with --enable-utf8 for now
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-12 21:15:07 +00:00
Václav Slavík
c9f7896861
first phase of transition to unified Unicode build:
...
1. changed c_str() to return wxCStrData (implicitly convertible to wxChar*)
2. added template type-safe wrappers for vararg functions
3. added wxUniChar class representing single Unicode character
4. changed wxString::operator[] and wxString::iterator to return wxUniChar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-17 10:26:10 +00:00
Vadim Zeitlin
97ad053bff
more standard (although less RFC-conformant) treatment of file: URIs (patch 1415189)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-09 03:09:36 +00:00
David Surovell
d8746da256
removed patch 1373127
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-14 17:49:05 +00:00
David Surovell
bafd830636
applied patch 1373127
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-05 16:25:16 +00:00
Vadim Zeitlin
17a1ebd101
first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Vadim Zeitlin
4115960d4b
remove extraneous semicolons (patch 1299687)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 20:29:22 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
97d8fe8791
moved wxURL::ConvertToValidURI() and other methods from uri.cpp to url.cpp so that they're exported from net DLL as needed (patch 1233765)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-28 21:52:50 +00:00
Vadim Zeitlin
24ca04e7aa
fix for fixing of escape sequences (patch 1213416)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-07 12:17:33 +00:00
Ryan Norton
4cc52142b8
Update wxURI for RFC 3986
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-03 03:48:08 +00:00
Vadim Zeitlin
6f0344c7ff
fix evaluation order bug (patch 1158099)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-07 20:06:14 +00:00
Ryan Norton
4860d40db4
rename wxURI::GetUser to wxURI::GetUserInfo and add wxURI::GetUser and wxURI::GetPassword
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 20:01:44 +00:00
Dimitri Schoolwerth
00a1d2e004
minor typo fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-16 19:25:35 +00:00
Włodzimierz Skiba
525d858363
Last .empty() string source cleaning before 2.5.4.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-02 13:57:02 +00:00
Włodzimierz Skiba
60431236a3
MinGW fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-17 19:08:44 +00:00
Włodzimierz Skiba
a6fb8636e5
Old API deprecated. Source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-11 21:17:16 +00:00
Włodzimierz Skiba
ea4daac45c
Fixed typo.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-16 19:44:44 +00:00
Ryan Norton
2c09fb3b8b
wxMemxxx --> wxTmemxxx, get rid of wxdocmpxxx impossible case
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-21 17:44:40 +00:00
Ryan Norton
e854db32dd
fix some comp errors on DMC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-11 08:29:43 +00:00
Włodzimierz Skiba
6356d52a67
Unfortunatelly compiler does not know which bits play here and still warns about loosing them.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-08 19:34:45 +00:00
Ryan Norton
d8d7193d76
in unescape add normal characters in addition to unescaped characters :)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-06 02:32:51 +00:00
Włodzimierz Skiba
1676a1941a
Still needs a typecasting to please warning about loosing bits.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-05 20:49:37 +00:00
Ryan Norton
409a7ba772
slightly nicer workaround for pickier compiler warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-04 19:07:12 +00:00
Włodzimierz Skiba
846978d727
Warning fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-04 18:58:04 +00:00
Ryan Norton
d21d3f21a2
wxstringbufferlen stl fixup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-04 17:51:28 +00:00
Ryan Norton
ba5a47aed8
because gcc is dumb and can't tell the difference between a std::string and a wxString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-31 18:26:03 +00:00
Ryan Norton
997ba01b28
restore ConvertToValidURI to prev. version for bw compat. Note changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-30 20:22:24 +00:00
Ryan Norton
ce321570b0
wxURL - doc cleanups, depreciated more methods, more source comments. wxURI - enclosed literal characters with wxT, more source comments, doc cleanups, changed StartsWith(x) to [ou] == x
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 22:22:40 +00:00
Włodzimierz Skiba
1ccc19ce9d
Borland warning fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 11:48:32 +00:00
Ryan Norton
86470d432f
final wxURI API changes. Changed Get to BuildURI to better reflect what its doing. Added wxURI::Unescape to unescape characters in a url or uri. Added wxURI::BuildUnescapedURI. Changed the wxURL convertXXXuri methods to use uri methods instead, and depreciated these methods.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 09:57:43 +00:00
Ryan Norton
b60b2ec8ac
Inherit wxURL from wxURI, providing assignment, copy construction, comparison, and less duplication of code. Change wxURI a bit to meet some of Vadim's reccommendations - move accessors into header, and finish some of his other reccom. Change assignment to use const wxString& instead of const wxChar*. Change wxURI docs to reflect that it inherits from wxObject. Made preliminary docs for the wxURL transition. Add some unit tests for the transition.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 06:49:46 +00:00
Vadim Zeitlin
8404931e0d
minor cleanup: don't use bool parameters, don't typedef the enums, don't abuse references
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 01:03:38 +00:00
Ryan Norton
dd65d8c830
wxURI. Move Convert/to/fromURI into uri.cpp so that it is compiled in base. Regenerate Bakefiles.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 22:47:26 +00:00