xtd 0.2.0
uri_format.h
Go to the documentation of this file.
1 #pragma once
4 #include "enum.h"
5 
7 namespace xtd {
17  enum class uri_format {
19  safe_unescaped = 0,
21  unescaped = 1,
23  uri_escaped = 2,
24  };
25 }
26 
28 template<> struct xtd::enum_register<xtd::uri_format> {
29  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::uri_format> {{xtd::uri_format::safe_unescaped, "safe_unescaped"}, {xtd::uri_format::unescaped, "unescaped"}, {xtd::uri_format::uri_escaped, "uri_escaped"}};}
30 };
uri_format
Controls how URI information is escaped.
Definition: uri_format.h:17
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
Contains enum_ and enum_ut_ keywords.
Escaping is performed according to the rules in RFC 2396.
Characters that have a reserved meaning in the requested URI components remain escaped. All others are not escaped. See Remarks.
No escaping is performed.
Provides the registration struct for enumerations.
Definition: enum_register.h:36