version 1.3, 1996/12/02 15:02:53
|
version 1.4, 1996/12/07 15:10:40
|
Line 1
|
Line 1
|
/* |
/*** |
** -- Copyright (c) 1996-1997 Inria/CNRS All rights reserved. -- |
*** Copyright (c) 1996 INRIA, All rights reserved |
*/ |
***/ |
|
|
#include "amaya.h" |
#include "amaya.h" |
|
|
Line 14
|
Line 14
|
#include "init.h" |
#include "init.h" |
#include "AHTURLTools.h" /** defined here **/ |
#include "AHTURLTools.h" /** defined here **/ |
|
|
/*+--------------------------------------------------------------------+ */ |
/*---------------------------------------------------------------------- |
/*| IsHTMLName | */ |
IsHTMLName |
/*+--------------------------------------------------------------------+ */ |
----------------------------------------------------------------------*/ |
|
|
#ifdef __STDC__ |
#ifdef __STDC__ |
boolean IsHTMLName (char *path) |
boolean IsHTMLName (char *path) |
Line 49 char *path;
|
Line 49 char *path;
|
return TRUE; |
return TRUE; |
} |
} |
|
|
/*+--------------------------------------------------------------------+ */ |
/*---------------------------------------------------------------------- |
/*| IsImageName | */ |
IsImageName |
/*+--------------------------------------------------------------------+ */ |
----------------------------------------------------------------------*/ |
|
|
#ifdef __STDC__ |
#ifdef __STDC__ |
boolean IsImageName (char *path) |
boolean IsImageName (char *path) |
Line 84 char *path;
|
Line 84 char *path;
|
return TRUE; |
return TRUE; |
} |
} |
|
|
/*+--------------------------------------------------------------------+ */ |
/*---------------------------------------------------------------------- |
/*| IsTextName | */ |
IsTextName |
/*+--------------------------------------------------------------------+ */ |
----------------------------------------------------------------------*/ |
|
|
#ifdef __STDC__ |
#ifdef __STDC__ |
boolean IsTextName (char *path) |
boolean IsTextName (char *path) |
Line 127 char *path;
|
Line 127 char *path;
|
return FALSE; |
return FALSE; |
} |
} |
|
|
/*+--------------------------------------------------------------------+ */ |
/*---------------------------------------------------------------------- |
/*| IsHTTPPath | */ |
IsHTTPPath |
/*+--------------------------------------------------------------------+ */ |
----------------------------------------------------------------------*/ |
|
|
#ifdef __STDC__ |
#ifdef __STDC__ |
boolean IsHTTPPath (char *path) |
boolean IsHTTPPath (char *path) |
Line 147 char *path;
|
Line 147 char *path;
|
return TRUE; |
return TRUE; |
} |
} |
|
|
/*+--------------------------------------------------------------------+ */ |
/*---------------------------------------------------------------------- |
/*| IsWithParameters | */ |
IsWithParameters |
/*+--------------------------------------------------------------------+ */ |
----------------------------------------------------------------------*/ |
|
|
#ifdef __STDC__ |
#ifdef __STDC__ |
boolean IsWithParameters (char *path) |
boolean IsWithParameters (char *path) |
Line 173 char *path;
|
Line 173 char *path;
|
return TRUE; |
return TRUE; |
} |
} |
|
|
/*+--------------------------------------------------------------------+ */ |
/*---------------------------------------------------------------------- |
/*| IsW3Path | */ |
IsW3Path |
/*+--------------------------------------------------------------------+ */ |
----------------------------------------------------------------------*/ |
|
|
#ifdef __STDC__ |
#ifdef __STDC__ |
boolean IsW3Path (char *path) |
boolean IsW3Path (char *path) |
Line 193 char *path;
|
Line 193 char *path;
|
return TRUE; |
return TRUE; |
} |
} |
|
|
/*+--------------------------------------------------------------------+ */ |
/*---------------------------------------------------------------------- |
/*| IsValidProtocol | */ |
IsValidProtocol |
/*+--------------------------------------------------------------------+ */ |
----------------------------------------------------------------------*/ |
|
|
#ifdef __STDC__ |
#ifdef __STDC__ |
boolean IsValidProtocol (char *path) |
boolean IsValidProtocol (char *path) |
Line 213 char *path;
|
Line 213 char *path;
|
return (NO); |
return (NO); |
} |
} |
|
|
/*+--------------------------------------------------------------------+ */ |
/*---------------------------------------------------------------------- |
/*| IsValidNormalizeURL says which URL's may be normalized | */ |
IsValidNormalizeURL says which URL's may be normalized |
/*+--------------------------------------------------------------------+ */ |
----------------------------------------------------------------------*/ |
|
|
#ifdef __STDC__ |
#ifdef __STDC__ |
boolean IsValidNormalizeURL (char *path) |
boolean IsValidNormalizeURL (char *path) |
Line 232 char *path;
|
Line 232 char *path;
|
} |
} |
|
|
|
|
/*+--------------------------------------------------------------------+ */ |
/*---------------------------------------------------------------------- |
/*| NormalizeURL provides the new complete and normalized URL or file | */ |
NormalizeURL provides the new complete and normalized URL or file |
/*| name path and the name of the document. | */ |
name path and the name of the document. |
/*| orgName is the original requested name. | */ |
orgName is the original requested name. |
/*| doc identifies the document which provides the original | */ |
doc identifies the document which provides the original |
/*| name. | */ |
name. |
/*| newName is the resulting URL of file name. | */ |
newName is the resulting URL of file name. |
/*| docName is the resulting document name. | */ |
docName is the resulting document name. |
/*+--------------------------------------------------------------------+ */ |
----------------------------------------------------------------------*/ |
|
|
#ifdef __STDC__ |
#ifdef __STDC__ |
void NormalizeURL (char *orgName, Document doc, char *newName, char *docName) |
void NormalizeURL (char *orgName, Document doc, char *newName, char *docName) |
Line 388 char *docName;
|
Line 388 char *docName;
|
} |
} |
} |
} |
|
|
/*+--------------------------------------------------------------------+ */ |
/*---------------------------------------------------------------------- |
/*| IsSameHost | */ |
IsSameHost |
/*+--------------------------------------------------------------------+ */ |
----------------------------------------------------------------------*/ |
|
|
#ifdef __STDC__ |
#ifdef __STDC__ |
boolean IsSameHost (char *url1, char *url2) |
boolean IsSameHost (char *url1, char *url2) |
Line 418 char *path;
|
Line 418 char *path;
|
} |
} |
|
|
|
|
/*+--------------------------------------------------------------------+ */ |
/*---------------------------------------------------------------------- |
/*| AHTMakeRelativeURL | */ |
AHTMakeRelativeURL |
/*+--------------------------------------------------------------------+ */ |
----------------------------------------------------------------------*/ |
|
|
#ifdef __STDC__ |
#ifdef __STDC__ |
char *AHTMakeRelativeName(char *url, char *base_url) |
char *AHTMakeRelativeName(char *url, char *base_url) |