Diff for /Amaya/amaya/AHTURLTools.c between versions 1.121 and 1.122

version 1.121, 2001/07/03 12:25:15 version 1.122, 2001/08/30 16:16:02
Line 105  char *EscapeURL (const char *url) Line 105  char *EscapeURL (const char *url)
               break;                break;
   
             default:              default:
               new_chars = 1;                 if ((unsigned char )*ptr > 127)
                   new_chars = 3;
                 else
                   new_chars = 1; 
               break;                break;
             }              }
   
Line 148  char *EscapeURL (const char *url) Line 151  char *EscapeURL (const char *url)
   return (buffer);    return (buffer);
 }  }
   
   /*----------------------------------------------------------------------
     URLToUTF8
     If such convertion is needed, returns a converted string that the
     user must free.
     ----------------------------------------------------------------------*/
   char *URLToUTF8 (char *url, Document doc)
   {
     unsigned char *tmp;
   
     if (!url || *url == EOS)
       return NULL;
     
     /* does the URL contain chars > 127 ? */
     tmp = url;
     while (*tmp)
       {
         if (*tmp > 127)
           break;
         tmp++;
       }
   
     if (*tmp == EOS)
       return NULL;  /* no such chars found */
   
     tmp = TtaConvertIsoToMbs (url, TtaGetDocumentCharset (doc));
   
     return tmp;
   }
   
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
   ExplodeURL     ExplodeURL 

Removed from v.1.121  
changed lines
  Added in v.1.122


Webmaster