/programs/network/htmlv/browser/include/history.h |
---|
24,7 → 24,7 |
void UrlsHistory::AddUrl() //òóò íóæåí ââîäèìûé ýëåìåíò - äëÿ óíèâåðñàëüíîñòè |
{ |
int i; |
if (history_num>0) && (strcmp(#URL,#history_list[history_current].Item)==0) return; |
if (history_num>0) && (!strcmp(#URL,#history_list[history_current].Item)) return; |
if (history_current>=MAX_HISTORY_NUM-1) |
{ |
/programs/network/htmlv/browser/include/parce_tag.h |
---|
1,8 → 1,10 |
void GetNextParam() |
unsigned int GetNextParam() |
{ |
byte kavichki = false; |
int i = strlen(#tagparam) - 1; |
if (!tagparam) return 0; |
WHILE((i > 0) && ((tagparam[i] == '"') || (tagparam[i] == ' ') || (tagparam[i] == '\'') || (tagparam[i] == '/'))) |
{ |
IF (tagparam[i] == '"') || (tagparam[i] == '\'') kavichki=tagparam[i]; |
43,4 → 45,6 |
strcpy(#parametr, #tagparam + i + 1); |
tagparam[i] = 0x00; |
return 1; |
} |
/programs/network/htmlv/browser/include/some_code.h |
---|
30,11 → 30,15 |
int i, j = 0; |
for (i = 0; i <= id - 401; i++) |
{ |
do j++; |
do |
{ |
j++; |
if (j>=strlen(#page_links)) return; //íå ñàìîå óäà÷íîå ðåøåíèå |
} |
while (page_links[j] <>'|'); |
} |
page_links[j] = 0x00; |
strcpy(#URL, #page_links[strrchr(#page_links, '|')]); |
strcpy(#URL, #page_links+strrchr(#page_links, '|')); |
} |
/programs/network/htmlv/browser/include/unicode_tags.h |
---|
1,8 → 1,3 |
byte unicode_chars[] = " ¡¢£¤¥¦§¨©ª«¬®¯àáâãäåæçèéêëìíîïðñh£\243i\105\244\0"; |
char *unicode_tags[]={ |
"nbsp", " ", |
"#38", " ", |
66,3 → 61,29 |
"percnt","%", |
0}; |
byte unicode_chars[] = " ¡¢£¤¥¦§¨©ª«¬®¯àáâãäåæçèéêëìíîïðñh£\243i\105\244\0"; |
unsigned char GetUnicodeSymbol() |
{ |
int j; |
for (j=0; unicode_tags[j]!=0; j+=2;) |
{ |
if (!strcmp(#tag, unicode_tags[j])) |
{ |
strcat(#line, unicode_tags[j+1]); |
return NULL; |
} |
} |
rez = atoi(#tag + 1) - 1040; |
if (tag[1] == '1') && (rez>=0) && (rez<=72) && (strlen(#tag) == 5) |
{ |
return unicode_chars[rez]; |
} |
strcat(#line,#tag); //âûâîäèì íà ýêðàí íåîáðàáîòàííûé òåã, òàê áðàóçåðû çà÷åì-òî äåëàþò |
return NULL; |
} |