We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 024a7fa commit 02492e1Copy full SHA for 02492e1
include/ada/url_pattern.h
@@ -7,6 +7,7 @@
7
8
#include <string>
9
#include <unordered_map>
10
+#include <variant>
11
12
namespace ada {
13
src/url_pattern.cpp
@@ -5,11 +5,13 @@
5
6
-URLPattern::Component::Component(std::string_view pattern,
- std::string_view regex,
- const std::vector<std::string>& names) {
+URLPattern::Component::Component(std::string_view pattern_,
+ std::string_view regex_,
+ const std::vector<std::string>& names_) {
// TODO: Implement this
- return {.pattern = pattern, .regex = regex, .names = std::move(names)};
+ pattern = pattern_;
+ regex = regex_;
14
+ names = std::move(names_);
15
}
16
17
std::optional<URLPattern::Result> URLPattern::exec(
0 commit comments