222 uri& operator =(
const uri&) =
default;
594 xtd::
string to_string() const noexcept override;
605 static
bool check_scheme_name(const
xtd::
string& scheme);
616 static
xtd::
string escape_data_string(const
xtd::
string& value);
628 static
xtd::
string escape_uri_string(const
xtd::
string& value);
641 static
xtd::
string hex_escape(
char character);
648 static
char hex_unescape(const
xtd::
string& pattern,
size_t& index);
654 static
bool is_hex_digit(
char character);
661 static
bool is_hex_encoding(const
xtd::
string& pattern,
size_t index);
686 static
xtd::
string unescape_data_string(const
xtd::
string& value);
690 static
string format_componant(const
string& str,
uri_format format);
691 static
string format_host_componant(const
string& str,
uri_format format);
692 static
bool need_to_escape_data_char(
char character);
693 static
bool need_to_escape_uri_char(
char character);
694 void set_fragment(
xtd::
string& escapeUri);
695 void set_host(
xtd::
string& escapeUri);
696 void set_path(
xtd::
string& escapeUri);
697 void set_port(
xtd::
string& escapeUri);
698 void set_query(
xtd::
string& escapeUri);
699 void set_scheme(
xtd::
string& escapeUri);
701 void set_user_info(
xtd::
string& escapeUri);
703 xtd::
string original_uri_;
705 xtd::
string scheme_delimiter_;
706 xtd::
string user_info_;
711 xtd::
string fragment_;
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Represents text as a sequence of character units.
Definition basic_string.hpp:71
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:43
Provides an object representation of a uniform resource identifier (URI) and easy access to the parts...
Definition uri.hpp:103
xtd::string local_path() const
Gets the original URI string that was passed to the xtd::uri constructor.
bool is_absolute_uri() const
Gets whether the xtd::uri instance is absolute.
xtd::string dns_safe_host() const
Gets an unescaped host name that is safe to use for DNS resolution.
bool equals(const xtd::object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
xtd::string user_info() const
Gets the user name, password, or other user-specific information associated with the specified URI.
uri()=default
Initializes a new instance of the xtd::uri class.
bool is_loopback() const
Gets whether the specified xtd::uri references the local host.
xtd::string absolute_uri()
Gets the absolute URI.
uri(const uri &base_uri, const xtd::string &relative_uri)
Initializes a new instance of the xtd::uri class based on the specified base URI and relative URI str...
xtd::string get_left_part(xtd::uri_partial part) const
Gets the specified portion of a xtd::uri instance.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
xtd::string query() const
Gets any query information included in the specified URI.
xtd::string fragment() const
Gets the escaped URI fragment.
xtd::string authority() const
Gets the Domain Name System (DNS) host name or IP address and the port number for a server.
uri(const xtd::string &uri_string)
Initializes a new instance of the xtd::uri class with the specified URI.
xtd::string absolute_path() const
Gets the absolute path of the URI.
xtd::string idn_host() const
Gets the RFC 3490 compliant International Domain Name of the host, using Punycode as appropriate....
xtd::string path_and_query() const
Gets the absolute_path and query properties separated by a question mark (?).
xtd::array< xtd::string > segments() const
Gets an array containing the path segments that make up the specified URI.
uri(const uri &base_uri, const uri &relative_uri)
Initializes a new instance of the xtd::uri class based on the combination of a specified base xtd::ur...
bool is_default_port() const
Gets whether the port value of the URI is the default for this scheme.
bool equals(const xtd::uri &uri) const noexcept override
Determines whether the specified object is equal to the current object.
bool is_file() const
Gets a value indicating whether the specified xtd::uri is a file URI.
xtd::string get_components(xtd::uri_components components, xtd::uri_format format) const
Gets the specified components of the current instance using the specified escaping for special charac...
bool is_base_of(const xtd::uri &uri) const
Determines whether the current xtd::uri instance is a base of the specified xtd::uri instance.
xtd::string host() const
Gets the host component of this instance.
bool is_well_formed_original_string()
Indicates whether the string used to construct this xtd::uri was well-formed and is not required to b...
xtd::string scheme() const
Gets the scheme name for this URI.
int32 port() const
Gets the port number of this URI.
const xtd::string & original_string() const
Gets the original URI string that was passed to the xtd::uri constructor.
bool is_unc() const
Gets whether the specified xtd::uri is a universal naming convention (UNC) path.
xtd::uri_host_name_type host_name_type() const
Gets the type of the host name specified in the URI.
uri(const xtd::string &uri, xtd::uri_kind uri_kind)
Initializes a new instance of the xtd::uri class with the specified URI. This constructor allows you ...
#define core_export_
Define shared library export.
Definition core_export.hpp:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
uri_components
This enumeration has a Flags attribute that allows a bitwise combination of its member values.
Definition uri_components.hpp:15
uri_format
Controls how URI information is escaped.
Definition uri_format.hpp:17
uri_partial
Defines the parts of a URI for the xtd::uri::get_left_part method.
Definition uri_partial.hpp:15
uri_kind
Defines the kinds of Uris for the xtd::uri::is_well_formed_uri_string and several xtd::uri methods.
Definition uri_kind.hpp:19
uri_host_name_type
Defines host name types for the xtd::uri::check_host_name method.
Definition uri_host_name_type.hpp:15
Contains xtd::iequatable interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::string alias.
Contains xtd::uri_components enum.
Contains xtd::uri_host_name_type enum.
Contains xtd::uri_kind enum.
Contains xtd::uri_partial enum.