@@ -23,17 +23,10 @@ class URLPattern {
2323 explicit Component (std::string_view pattern, std::string_view regex,
2424 const std::vector<std::string>& names);
2525
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;
3328 const std::vector<std::string>& get_names () const noexcept
34- ada_lifetime_bound {
35- return names;
36- }
29+ ada_lifetime_bound;
3730
3831 private:
3932 // Disallow copy.
@@ -106,19 +99,17 @@ class URLPattern {
10699 bool test (std::optional<Input> input,
107100 std::optional<std::string_view> base_url);
108101
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;
117109
118110 // If ignoreCase is true, the JavaScript regular expression created for each
119111 // 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;
122113
123114 private:
124115 Component protocol;
0 commit comments