67 lines
3 KiB
Text
67 lines
3 KiB
Text
|
Index: deps/ada/ada.cpp
|
||
|
--- deps/ada/ada.cpp.orig
|
||
|
+++ deps/ada/ada.cpp
|
||
|
@@ -10485,7 +10485,7 @@ ada_unused std::string get_state(ada::state s) {
|
||
|
return "Special Authority Slashes";
|
||
|
case ada::state::SPECIAL_RELATIVE_OR_AUTHORITY:
|
||
|
return "Special Relative or Authority";
|
||
|
- case ada::state::QUERY:
|
||
|
+ case ada::state::ADAQUERY:
|
||
|
return "Query";
|
||
|
case ada::state::PATH:
|
||
|
return "Path";
|
||
|
@@ -12573,7 +12573,7 @@ result_type parse_url(std::string_view user_input,
|
||
|
// state to query state.
|
||
|
if ((input_position != input_size) &&
|
||
|
(url_data[input_position] == '?')) {
|
||
|
- state = ada::state::QUERY;
|
||
|
+ state = ada::state::ADAQUERY;
|
||
|
}
|
||
|
// Otherwise, if c is not the EOF code point:
|
||
|
else if (input_position != input_size) {
|
||
|
@@ -12668,7 +12668,7 @@ result_type parse_url(std::string_view user_input,
|
||
|
|
||
|
break;
|
||
|
}
|
||
|
- case ada::state::QUERY: {
|
||
|
+ case ada::state::ADAQUERY: {
|
||
|
ada_log("QUERY ", helpers::substring(url_data, input_position));
|
||
|
// Let queryPercentEncodeSet be the special-query percent-encode set if
|
||
|
// url is special; otherwise the query percent-encode set.
|
||
|
@@ -12750,7 +12750,7 @@ result_type parse_url(std::string_view user_input,
|
||
|
size_t location = view.find('?');
|
||
|
if (location != std::string_view::npos) {
|
||
|
view.remove_suffix(view.size() - location);
|
||
|
- state = ada::state::QUERY;
|
||
|
+ state = ada::state::ADAQUERY;
|
||
|
input_position += location + 1;
|
||
|
} else {
|
||
|
input_position = input_size + 1;
|
||
|
@@ -12803,7 +12803,7 @@ result_type parse_url(std::string_view user_input,
|
||
|
// set url's query to the empty string and state to query state.
|
||
|
else if ((input_position != input_size) &&
|
||
|
(url_data[input_position] == '?')) {
|
||
|
- state = ada::state::QUERY;
|
||
|
+ state = ada::state::ADAQUERY;
|
||
|
}
|
||
|
// Otherwise, if c is not the EOF code point:
|
||
|
else if (input_position != input_size) {
|
||
|
@@ -12827,7 +12827,7 @@ result_type parse_url(std::string_view user_input,
|
||
|
// Furthermore, we can immediately locate the '?'.
|
||
|
size_t locofquestionmark = view.find('?');
|
||
|
if (locofquestionmark != std::string_view::npos) {
|
||
|
- state = ada::state::QUERY;
|
||
|
+ state = ada::state::ADAQUERY;
|
||
|
view.remove_suffix(view.size() - locofquestionmark);
|
||
|
input_position += locofquestionmark + 1;
|
||
|
} else {
|
||
|
@@ -12987,7 +12987,7 @@ result_type parse_url(std::string_view user_input,
|
||
|
// If c is U+003F (?), then set url's query to the empty string and
|
||
|
// state to query state.
|
||
|
if (input_position != input_size && url_data[input_position] == '?') {
|
||
|
- state = ada::state::QUERY;
|
||
|
+ state = ada::state::ADAQUERY;
|
||
|
}
|
||
|
// Otherwise, if c is not the EOF code point:
|
||
|
else if (input_position != input_size) {
|