Rev 5678 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5678 | Rev 5690 | ||
---|---|---|---|
Line 111... | Line 111... | ||
111 | } |
111 | } |
112 | else |
112 | else |
113 | { |
113 | { |
114 | strcpy(bufpointer, o_bufpointer); |
114 | strcpy(bufpointer, o_bufpointer); |
115 | } |
115 | } |
116 | if (set_new_encoding==_WIN) wintodos(bufpointer); |
116 | if (set_new_encoding==_WIN) bufpointer = ChangeCharset("CP1251", "CP866", bufpointer); |
117 | if (set_new_encoding==_UTF) utf8rutodos(bufpointer); |
117 | if (set_new_encoding==_UTF) bufpointer = ChangeCharset("UTF-8", "CP866", bufpointer); |
118 | if (set_new_encoding==_KOI) koitodos(bufpointer); |
118 | if (set_new_encoding==_KOI) bufpointer = ChangeCharset("KOI8-RU", "CP866", bufpointer); |
119 | } |
119 | } |
Line 120... | Line 120... | ||
120 | 120 | ||
121 | void TWebBrowser::Prepare(dword bufpos, in_filesize){ |
121 | void TWebBrowser::Prepare(dword bufpos, in_filesize){ |
122 | bufsize = in_filesize; |
122 | bufsize = in_filesize; |
Line 651... | Line 651... | ||
651 | { |
651 | { |
652 | if (!strcmp(#tag,text)) return 1; else return 0; |
652 | if (!strcmp(#tag,text)) return 1; else return 0; |
653 | }>>>>>>>=15)>>>>>=>!--> |
653 | } |
Line -... | Line 654... | ||
- | 654 | ||
- | 655 | ||
- | 656 | :dword Hex2Symb(char* htmlcolor) |
|
- | 657 | { |
|
- | 658 | dword j=0, symbol=0; |
|
- | 659 | char ch=0x00; |
|
- | 660 | for (;j<2;j++) |
|
- | 661 | { |
|
- | 662 | ch=ESBYTE[htmlcolor+j]; |
|
- | 663 | if (ch==0x0d) || (ch=='\9') RETURN 0; |
|
- | 664 | if ((ch>='0') && (ch<='9')) ch -= '0'; |
|
- | 665 | if ((ch>='A') && (ch<='F')) ch -= 'A'-10; |
|
- | 666 | if ((ch>='a') && (ch<='f')) ch -= 'a'-10; |
|
- | 667 | symbol = symbol*0x10 + ch; |
|
- | 668 | } |
|
- | 669 | AL=symbol; |