UrlBase.cc File Reference

#include <zypp/url/UrlBase.h>
#include <zypp/base/String.h>
#include <zypp/base/Gettext.h>
#include <stdexcept>
#include <climits>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>

Go to the source code of this file.

Namespaces

namespace  zypp
namespace  zypp::url

Classes

class  zypp::url::UrlBaseData
 Internal data used by UrlBase. More...

Defines

#define RX_SPLIT_AUTHORITY   "^(([^:@]*)([:]([^@]*))?@)?(\\[[^]]+\\]|[^:]+)?([:](.*))?"
#define RX_VALID_SCHEME   "^[a-zA-Z][a-zA-Z0-9\\.+-]*$"
#define RX_VALID_PORT   "^[0-9]{1,5}$"
#define RX_VALID_HOSTNAME   "^[[:alnum:]]+([\\.-][[:alnum:]]+)*$"
#define RX_VALID_HOSTIPV4   "^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$"
#define RX_VALID_HOSTIPV6   "^\\[[:a-fA-F0-9]+(:[0-9]{1,3}(\\.[0-9]{1,3}){3})?\\]$"

Typedefs

typedef std::map< std::string,
std::string > 
zypp::url::UrlConfig

Functions

void zypp::url::checkUrlData (const std::string &data, const std::string &name, const std::string &regx, bool show=true)


Detailed Description

Definition in file UrlBase.cc.


Define Documentation

#define RX_SPLIT_AUTHORITY   "^(([^:@]*)([:]([^@]*))?@)?(\\[[^]]+\\]|[^:]+)?([:](.*))?"

Definition at line 30 of file UrlBase.cc.

Referenced by zypp::url::UrlBase::setAuthority().

#define RX_VALID_SCHEME   "^[a-zA-Z][a-zA-Z0-9\\.+-]*$"

Definition at line 33 of file UrlBase.cc.

Referenced by zypp::url::UrlBase::isValidScheme().

#define RX_VALID_PORT   "^[0-9]{1,5}$"

Definition at line 35 of file UrlBase.cc.

Referenced by zypp::url::UrlBase::isValidPort().

#define RX_VALID_HOSTNAME   "^[[:alnum:]]+([\\.-][[:alnum:]]+)*$"

Definition at line 37 of file UrlBase.cc.

Referenced by zypp::url::UrlBase::isValidHost().

#define RX_VALID_HOSTIPV4   "^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$"

Definition at line 39 of file UrlBase.cc.

#define RX_VALID_HOSTIPV6   "^\\[[:a-fA-F0-9]+(:[0-9]{1,3}(\\.[0-9]{1,3}){3})?\\]$"

Definition at line 42 of file UrlBase.cc.

Referenced by zypp::url::UrlBase::isValidHost().


Generated on Tue Nov 28 16:49:35 2006 for zypp by  doxygen 1.5.0