mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 22:03:07 -06:00
Skylark: UrlEncode -> static sUrlEncode to avoid confusion
git-svn-id: svn://ultimatepp.org/upp/trunk@7256 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
1ee743523f
commit
8a5e5dfd59
2 changed files with 7 additions and 7 deletions
|
|
@ -297,7 +297,7 @@ void Http::ReadMultiPart(const String& buffer)
|
|||
|
||||
static const char hex_digits[] = "0123456789ABCDEF";
|
||||
|
||||
void UrlEncode(StringBuffer& out, const String& s)
|
||||
static void sUrlEncode(StringBuffer& out, const String& s)
|
||||
{
|
||||
static bool ok[256];
|
||||
ONCELOCK {
|
||||
|
|
@ -332,10 +332,10 @@ void MakeLink(StringBuffer& out, const Vector<String>& part, const Vector<Value>
|
|||
int q = (byte)*p;
|
||||
if(q < 32) {
|
||||
if(q >= 0 && q < arg.GetCount())
|
||||
UrlEncode(out, AsString(arg[q]));
|
||||
sUrlEncode(out, AsString(arg[q]));
|
||||
}
|
||||
else
|
||||
UrlEncode(out, p);
|
||||
sUrlEncode(out, p);
|
||||
}
|
||||
bool get = false;
|
||||
for(int i = 0; i < arg.GetCount(); i++)
|
||||
|
|
@ -349,9 +349,9 @@ void MakeLink(StringBuffer& out, const Vector<String>& part, const Vector<Value>
|
|||
for(int i = 0; i < m.GetCount(); i++) {
|
||||
if(i)
|
||||
out << '&';
|
||||
UrlEncode(out, AsString(m.GetKeys()[i]));
|
||||
sUrlEncode(out, AsString(m.GetKeys()[i]));
|
||||
out << '=';
|
||||
UrlEncode(out, AsString(m.GetValues()[i]));
|
||||
sUrlEncode(out, AsString(m.GetValues()[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
#ifndef _Skylark_icpp_init_stub
|
||||
#define _Skylark_icpp_init_stub
|
||||
#include "Sql/init"
|
||||
#define BLITZ_INDEX__ F99b1b565e5194ee2f9bb1998be2e6f71
|
||||
#define BLITZ_INDEX__ Fdc34a156e19f70e79e3af4bc5aee3879
|
||||
#include "StdLib.icpp"
|
||||
#undef BLITZ_INDEX__
|
||||
#define BLITZ_INDEX__ Fadc563b9c69ab7173de2094508da8708
|
||||
#define BLITZ_INDEX__ F4f56e545eab9f60b3cd674a218cc0915
|
||||
#include "Static.icpp"
|
||||
#undef BLITZ_INDEX__
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue