141,9 → 141,31 |
} |
|
|
|
void TWebBrowser::ReadHtml(byte encoding) |
{ |
if (native_http) |
{ |
if (strncmp(#URL,"http:",5)) { |
file_size stdcall (#URL); |
bufsize = EBX; |
} |
|
if (!bufsize) return; |
|
if (strncmp(#URL,"http:",5)) { |
mem_Free(bufpointer); |
bufpointer = mem_Alloc(bufsize); |
} |
|
if (strncmp(#URL,"http:",5)) ReadFile(0, bufsize, bufpointer, #URL); |
|
cur_encoding = encoding; |
if (encoding==_WIN) wintodos(bufpointer); |
if (encoding==_UTF) utf8rutodos(bufpointer); |
if (encoding==_KOI) koitodos(bufpointer); |
} |
else |
{ |
if (!strncmp(#URL,"http:",5)) |
file_size stdcall (#download_path); |
else |
164,8 → 186,17 |
if (encoding==_UTF) utf8rutodos(bufpointer); |
if (encoding==_KOI) koitodos(bufpointer); |
} |
} |
|
/* |
void TWebBrowser::ReadHtml(byte encoding) |
{ |
|
|
} |
*/ |
|
|
void TWebBrowser::Parse(dword bufpos, in_filesize){ |
word bukva[2]; |
int j, perenos_num; |