@@ -26,33 +26,37 @@ inline const std::vector<std::string>& URLPattern::Component::get_names()
2626 return names;
2727}
2828
29- inline const URLPattern::Component& URLPattern::get_protocol () const
30- ada_lifetime_bound {
31- return protocol;
29+ inline std::string_view URLPattern::get_protocol () const ada_lifetime_bound {
30+ // Return this's associated URL pattern's protocol component's pattern string.
31+ return protocol. get_pattern () ;
3232}
33- inline const URLPattern::Component& URLPattern::get_username () const
34- ada_lifetime_bound {
35- return username;
33+ inline std::string_view URLPattern::get_username () const ada_lifetime_bound {
34+ // Return this's associated URL pattern's username component's pattern string.
35+ return username. get_pattern () ;
3636}
37- inline const URLPattern::Component& URLPattern::get_password () const
38- ada_lifetime_bound {
39- return password;
37+ inline std::string_view URLPattern::get_password () const ada_lifetime_bound {
38+ // Return this's associated URL pattern's password component's pattern string.
39+ return password. get_pattern () ;
4040}
41- inline const URLPattern::Component& URLPattern::get_port () const
42- ada_lifetime_bound {
43- return port ;
41+ inline std::string_view URLPattern::get_hostname () const ada_lifetime_bound {
42+ // Return this's associated URL pattern's hostname component's pattern string.
43+ return hostname. get_pattern () ;
4444}
45- inline const URLPattern::Component& URLPattern::get_pathname () const
46- ada_lifetime_bound {
47- return pathname ;
45+ inline std::string_view URLPattern::get_port () const ada_lifetime_bound {
46+ // Return this's associated URL pattern's port component's pattern string.
47+ return port. get_pattern () ;
4848}
49- inline const URLPattern::Component& URLPattern::get_search () const
50- ada_lifetime_bound {
51- return search ;
49+ inline std::string_view URLPattern::get_pathname () const ada_lifetime_bound {
50+ // Return this's associated URL pattern's pathname component's pattern string.
51+ return pathname. get_pattern () ;
5252}
53- inline const URLPattern::Component& URLPattern::get_hash () const
54- ada_lifetime_bound {
55- return hash;
53+ inline std::string_view URLPattern::get_search () const ada_lifetime_bound {
54+ // Return this's associated URL pattern's search component's pattern string.
55+ return search.get_pattern ();
56+ }
57+ inline std::string_view URLPattern::get_hash () const ada_lifetime_bound {
58+ // Return this's associated URL pattern's hash component's pattern string.
59+ return hash.get_pattern ();
5660}
5761
5862inline bool URLPattern::case_ignored () const ada_lifetime_bound {
@@ -61,4 +65,4 @@ inline bool URLPattern::case_ignored() const ada_lifetime_bound {
6165
6266} // namespace ada
6367
64- #endif
68+ #endif
0 commit comments