Subversion Repositories Kolibri OS

Rev

Rev 4411 | Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. enum { BACK=300, FORWARD, REFRESH, HOME, NEWTAB, GOTOURL, SEARCHWEB, INPUT_CH, INPUT_BT, BTN_UP, BTN_DOWN };
  3. enum { _WIN, _DOS, _KOI, _UTF };
  4.  
  5.  
  6. dword get_URL_part(int len) {
  7.         char temp1[sizeof(URL)];
  8.         strcpy(#temp1, #URL);
  9.         temp1[len] = 0x00;
  10.         return #temp1;
  11. }
  12.  
  13. inline byte chTag(dword text) {return strcmp(#tag,text);}
  14.  
  15.  
  16. void GetURLfromPageLinks(int id)
  17. {
  18.         int i, j = 0;
  19.         for (i = 0; i <= id - 401; i++)
  20.         {
  21.                 do
  22.                 {
  23.                         j++;
  24.                         if (j>=strlen(#page_links)) return;
  25.                 }
  26.                 while (page_links[j] <>'|');
  27.         }
  28.         page_links[j] = 0x00;
  29.         strcpy(#URL, #page_links+strrchr(#page_links, '|'));
  30. }