98 static const WCHAR escapes[] = {
' ',
'"',
'#',
'%',
'<',
'>',
'[',
'\\',
']',
'^',
'`',
'{',
'|',
'}',
'~',0};
101 if (ch <= 31 || ch >= 127)
return TRUE;
104 if (ch == *
p++)
return TRUE;
111 static const WCHAR hex[] = {
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'A',
'B',
'C',
'D',
'E',
'F'};
116 for (
i = 0;
i < src_len;
i++)
133 if (
dst)
dst[*dst_len] = 0;
140 DWORD len_base, len_path;
157 (*ret)[len_base + len_path] = 0;
159 *
len = len_base + len_path;
233 if (!
p[0] ||
p[0] !=
'/' ||
p[1] !=
'/')
380 static const WCHAR formatW[] = {
'%',
'u',0};
439 static const WCHAR formatW[] = {
'%',
'u',0};
477 const WCHAR *schemeW;
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_PARAMETER
BOOL WINAPI WinHttpCrackUrl(LPCWSTR url, DWORD len, DWORD flags, LPURL_COMPONENTSW uc)
static DWORD parse_port(const WCHAR *str, DWORD len, INTERNET_PORT *ret)
static BOOL get_url_length(URL_COMPONENTS *uc, DWORD flags, DWORD *len)
static INTERNET_SCHEME get_scheme(const WCHAR *scheme, DWORD len)
BOOL WINAPI WinHttpCreateUrl(LPURL_COMPONENTS uc, DWORD flags, LPWSTR url, LPDWORD required)
static BOOL need_escape(WCHAR ch)
static BOOL uses_default_port(INTERNET_SCHEME scheme, INTERNET_PORT port)
static const WCHAR * get_scheme_string(INTERNET_SCHEME scheme)
static WCHAR * decode_url(LPCWSTR url, DWORD *len)
static DWORD set_component(struct url_component *comp, WCHAR *value, DWORD len, DWORD flags, BOOL *overflow)
static BOOL escape_string(const WCHAR *src, DWORD src_len, WCHAR *dst, DWORD *dst_len)
static const WCHAR scheme_https[]
static const WCHAR scheme_http[]
static DWORD escape_url(const WCHAR *url, DWORD *len, WCHAR **ret)
static DWORD get_comp_length(DWORD len, DWORD flags, WCHAR *comp)
GLdouble GLdouble GLdouble r
GLdouble GLdouble GLdouble GLdouble q
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
WINE_UNICODE_INLINE WCHAR * memchrW(const WCHAR *ptr, WCHAR ch, size_t n)
#define memcpy(s1, s2, n)
#define strncmpiW(s1, s2, n)
#define strncmpW(s1, s2, n)
#define ERROR_WINHTTP_INVALID_URL
#define INTERNET_SCHEME_HTTP
#define ERROR_WINHTTP_UNRECOGNIZED_SCHEME
#define INTERNET_DEFAULT_HTTP_PORT
#define INTERNET_SCHEME_HTTPS
#define INTERNET_DEFAULT_HTTPS_PORT