@@ -23,17 +23,10 @@ class URLPattern {
23
23
explicit Component (std::string_view pattern, std::string_view regex,
24
24
const std::vector<std::string>& names);
25
25
26
- // TODO(anonrig): Move these implementations to `url_pattern-inl.h`
27
- std::string_view get_pattern () const noexcept ada_lifetime_bound {
28
- return pattern;
29
- }
30
- std::string_view get_regex () const noexcept ada_lifetime_bound {
31
- return regex;
32
- }
26
+ std::string_view get_pattern () const noexcept ada_lifetime_bound;
27
+ std::string_view get_regex () const noexcept ada_lifetime_bound;
33
28
const std::vector<std::string>& get_names () const noexcept
34
- ada_lifetime_bound {
35
- return names;
36
- }
29
+ ada_lifetime_bound;
37
30
38
31
private:
39
32
// Disallow copy.
@@ -106,19 +99,17 @@ class URLPattern {
106
99
bool test (std::optional<Input> input,
107
100
std::optional<std::string_view> base_url);
108
101
109
- // TODO(anonrig): Move these to `url_pattern-inl.h`.
110
- const Component& get_protocol () const ada_lifetime_bound { return protocol; }
111
- const Component& get_username () const ada_lifetime_bound { return username; }
112
- const Component& get_password () const ada_lifetime_bound { return password; }
113
- const Component& get_port () const ada_lifetime_bound { return port; }
114
- const Component& get_pathname () const ada_lifetime_bound { return pathname; }
115
- const Component& get_search () const ada_lifetime_bound { return search; }
116
- const Component& get_hash () const ada_lifetime_bound { return hash; }
102
+ const Component& get_protocol () const ada_lifetime_bound;
103
+ const Component& get_username () const ada_lifetime_bound;
104
+ const Component& get_password () const ada_lifetime_bound;
105
+ const Component& get_port () const ada_lifetime_bound;
106
+ const Component& get_pathname () const ada_lifetime_bound;
107
+ const Component& get_search () const ada_lifetime_bound;
108
+ const Component& get_hash () const ada_lifetime_bound;
117
109
118
110
// If ignoreCase is true, the JavaScript regular expression created for each
119
111
// pattern must use the `vi` flag. Otherwise, they must use the `v` flag.
120
- // TODO(anonrig): Move these to `url_pattern-inl.h`.
121
- bool case_ignored () const ada_lifetime_bound { return ignore_case; }
112
+ bool case_ignored () const ada_lifetime_bound;
122
113
123
114
private:
124
115
Component protocol;
0 commit comments