Rev 4550 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4550 | Rev 4554 | ||
---|---|---|---|
Line 139... | Line 139... | ||
139 | strcat(#newurl, #URL); |
139 | strcat(#newurl, #URL); |
140 | strcpy(#URL, #newurl); |
140 | strcpy(#URL, #newurl); |
141 | } |
141 | } |
Line 142... | Line -... | ||
142 | - | ||
143 | 142 | ||
144 | 143 | ||
- | 144 | void TWebBrowser::ReadHtml(byte encoding) |
|
- | 145 | { |
|
- | 146 | if (native_http) |
|
- | 147 | { |
|
- | 148 | if (strncmp(#URL,"http:",5)) { |
|
- | 149 | file_size stdcall (#URL); |
|
- | 150 | bufsize = EBX; |
|
- | 151 | } |
|
- | 152 | ||
- | 153 | if (!bufsize) return; |
|
- | 154 | ||
- | 155 | if (strncmp(#URL,"http:",5)) { |
|
- | 156 | mem_Free(bufpointer); |
|
- | 157 | bufpointer = mem_Alloc(bufsize); |
|
- | 158 | } |
|
- | 159 | ||
- | 160 | if (strncmp(#URL,"http:",5)) ReadFile(0, bufsize, bufpointer, #URL); |
|
- | 161 | ||
- | 162 | cur_encoding = encoding; |
|
- | 163 | if (encoding==_WIN) wintodos(bufpointer); |
|
- | 164 | if (encoding==_UTF) utf8rutodos(bufpointer); |
|
- | 165 | if (encoding==_KOI) koitodos(bufpointer); |
|
- | 166 | } |
|
145 | void TWebBrowser::ReadHtml(byte encoding) |
167 | else |
146 | { |
168 | { |
147 | if (!strncmp(#URL,"http:",5)) |
169 | if (!strncmp(#URL,"http:",5)) |
148 | file_size stdcall (#download_path); |
170 | file_size stdcall (#download_path); |
Line 162... | Line 184... | ||
162 | cur_encoding = encoding; |
184 | cur_encoding = encoding; |
163 | if (encoding==_WIN) wintodos(bufpointer); |
185 | if (encoding==_WIN) wintodos(bufpointer); |
164 | if (encoding==_UTF) utf8rutodos(bufpointer); |
186 | if (encoding==_UTF) utf8rutodos(bufpointer); |
165 | if (encoding==_KOI) koitodos(bufpointer); |
187 | if (encoding==_KOI) koitodos(bufpointer); |
166 | } |
188 | } |
- | 189 | } |
|
- | 190 | ||
- | 191 | /* |
|
- | 192 | void TWebBrowser::ReadHtml(byte encoding) |
|
- | 193 | { |
|
- | 194 | ||
- | 195 | ||
- | 196 | } |
|
- | 197 | */ |
|
Line 167... | Line 198... | ||
167 | 198 | ||
168 | 199 | ||
169 | void TWebBrowser::Parse(dword bufpos, in_filesize){ |
200 | void TWebBrowser::Parse(dword bufpos, in_filesize){ |