xtd 0.2.0
Loading...
Searching...
No Matches

◆ scheme_delimiter

const xtd::ustring xtd::uri::scheme_delimiter
inlinestatic

Specifies the characters that separate the communication protocol scheme from the address portion of the URI. This field is read-only.

Examples
The following example creates a string from xtd::uri::uri_scheme_http, xtd::uri::scheme_delimiter, and an address. A xtd::uri instance is then created from the string.
ustring address = "www.contoso.com";
ustring uri_string = ustring::format("{0}{1}{2}/", uri::uri_scheme_http, uri::scheme_delimiter, address);
uri result(uri_string);
if (result.is_well_formed_original_string())
console::write_line("{0} is a well formed uri", uri_string);
else
console::write_line("{0} is not a well formed uri", uri_string);
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static const xtd::ustring uri_scheme_http
Specifies that the URI is accessed through the Hypertext Transfer Protocol (HTTP)....
Definition uri.h:165
static const xtd::ustring scheme_delimiter
Specifies the characters that separate the communication protocol scheme from the address portion of ...
Definition uri.h:120
Provides an object representation of a uniform resource identifier (URI) and easy access to the parts...
Definition uri.h:103
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:53
static ustring format(const ustring &fmt, args_t &&... args)
Writes the text representation of the specified arguments list, to string using the specified format ...
Definition ustring.h:1177