mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-06 16:34:13 +00:00
update values reset construction
This commit is contained in:
parent
90c9c36ebf
commit
9f0245e5ff
@ -148,20 +148,18 @@ int Request::save(
|
|||||||
|
|
||||||
void Request::parse() // @TODO https://docs.gtk.org/glib/struct.Uri.html
|
void Request::parse() // @TODO https://docs.gtk.org/glib/struct.Uri.html
|
||||||
{
|
{
|
||||||
|
scheme.clear();
|
||||||
|
host.clear();
|
||||||
|
port.clear();
|
||||||
|
path.clear();
|
||||||
|
query.clear();
|
||||||
|
|
||||||
auto match = Glib::Regex::split_simple(
|
auto match = Glib::Regex::split_simple(
|
||||||
R"regex(^((\w+)?:\/\/)?([^:\/]+)?(:(\d+)?)?([^\?$]+)?(\?(.*)?)?)regex",
|
R"regex(^((\w+)?:\/\/)?([^:\/]+)?(:(\d+)?)?([^\?$]+)?(\?(.*)?)?)regex",
|
||||||
get_text()
|
get_text()
|
||||||
);
|
);
|
||||||
|
|
||||||
scheme = "";
|
int index = 0; for (const Glib::ustring & VALUE : match)
|
||||||
host = "";
|
|
||||||
port = "";
|
|
||||||
path = "";
|
|
||||||
query = "";
|
|
||||||
|
|
||||||
int index = 0;
|
|
||||||
|
|
||||||
for (const Glib::ustring & VALUE : match)
|
|
||||||
{
|
{
|
||||||
switch (index)
|
switch (index)
|
||||||
{
|
{
|
||||||
|
@ -67,10 +67,10 @@ namespace app::browser::main::tab::page::navigation
|
|||||||
double progress_fraction;
|
double progress_fraction;
|
||||||
|
|
||||||
Glib::ustring scheme,
|
Glib::ustring scheme,
|
||||||
host,
|
host,
|
||||||
port,
|
port,
|
||||||
path,
|
path,
|
||||||
query;
|
query;
|
||||||
|
|
||||||
// Defaults
|
// Defaults
|
||||||
const bool HEXPAND = true;
|
const bool HEXPAND = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user