Updated wxDataStream (added ByteOrder)
Removed sckint.cpp from Makefile.am and filelist.txt (Could someone rebuild Makefile for MSW) Some update to the documentation. I'm documenting GSocket. Added gsockno.c in stubs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -320,12 +320,16 @@ wxString wxURL::ConvertToValidURI(const wxString& uri)
|
||||
for (i=0;i<uri.Len();i++) {
|
||||
wxChar c = uri.GetChar(i);
|
||||
|
||||
if (!isalpha(c) && c != _T('.') && c != _T('+') && c != _T('.') &&
|
||||
c != _T('/')) {
|
||||
hexa_code.Printf(_T("%%%02X"), c);
|
||||
out_str += hexa_code;
|
||||
} else
|
||||
out_str += c;
|
||||
if (c == _T(' '))
|
||||
out_str += _T('+');
|
||||
else {
|
||||
if (!isalpha(c) && c != _T('.') && c != _T('+') && c != _T('.') &&
|
||||
c != _T('/')) {
|
||||
hexa_code.Printf(_T("%%%02X"), c);
|
||||
out_str += hexa_code;
|
||||
} else
|
||||
out_str += c;
|
||||
}
|
||||
}
|
||||
|
||||
return out_str;
|
||||
|
Reference in New Issue
Block a user