Determine if the supplied cstr amounts to a valid URL.
| Return Type | Function name | Arguments |
|---|---|---|
| bool | IsUrl | (const char*,) |
Declared in file: hzTextproc.h
Defined in file : hzUrl.cpp
Function Logic:
Function body:
bool IsUrl (const char* url)
{
// Category: Text processing
//
// Determine if the supplied cstr amounts to a valid URL.
//
// Arguments: 1) url The URL as cstr, string
//
// Returns: True If the chain iterator is at the start of a valid URL
// False Otherwise
_hzfunc("IsUrl") ;
hzUrl U ; // Test URL
U = url ;
return !U ? false : true ;
}