|
|||||
|
||||||
Other Library Functions |
function |
uri.canonical |
Library: URI handling (OMURI)
Import: omuri.xmd |
Return type: String source Returns: the canonical form of path |
export string source function canonical value string source path
Function uri.canonical
removes superflous URI path elements from the argument path. For
example, the result of
uri.canonical "ftp://ftp.omnimark.com/./8.2/../9.0"would be
"ftp://ftp.omnimark.com/9.0"
This function can be useful for checking if two URIs identify the same resource, like the two URIs above.
Since the same resource can be identified using different URI strings, you should apply uri.canonical
on
the URIs before comparing them.
Other Library Functions
|
Copyright © Stilo International plc, 1988-2010.