Lines Matching refs:this

118 // decoding: percent decoding should be done prior to calling this function. We
120 // this function. We also do not trim control characters. We also assume that
408 // It is possible that this could miss some cases where ADA_DEVELOPMENT_CHECKS
1468 * The origin getter steps are to return the serialization of this's URL's
1476 * Returns true if this URL has a valid domain as per RFC 1034 and
1512 return this->parse_port(view, false);
1516 * Returns a JSON string representation of this URL.
1740 // outside of it (this comes at no performance cost).
1776 // copyright and related and neighboring rights to this software to the
1780 // along with this software. If not, see
2108 // if swap ADL finds this then it would call std::swap otherwise (same
2494 new (std::addressof(this->m_val)) T(std::forward<Args>(args)...);
2495 this->m_has_val = true;
2500 new (std::addressof(this->m_val)) T(std::forward<Rhs>(rhs).get());
2501 this->m_has_val = true;
2506 new (std::addressof(this->m_unexpect))
2508 this->m_has_val = false;
2515 // The problematic case is where rhs has a value, but *this does not.
2523 if (!this->m_has_val && rhs.m_has_val) {
2538 if (!this->m_has_val && rhs.m_has_val) {
2557 if (!this->m_has_val && rhs.m_has_val) {
2581 if (!this->m_has_val && rhs.m_has_val) {
2593 if (!this->m_has_val && rhs.m_has_val) {
2615 if (!this->m_has_val && rhs.m_has_val) {
2624 if (!this->m_has_val && rhs.m_has_val) {
2637 if (this->m_has_val) {
2651 bool has_value() const { return this->m_has_val; }
2653 TL_EXPECTED_11_CONSTEXPR T &get() & { return this->m_val; }
2654 constexpr const T &get() const & { return this->m_val; }
2655 TL_EXPECTED_11_CONSTEXPR T &&get() && { return std::move(this->m_val); }
2657 constexpr const T &&get() const && { return std::move(this->m_val); }
2661 return this->m_unexpect;
2663 constexpr const unexpected<E> &geterr() const & { return this->m_unexpect; }
2665 return std::move(this->m_unexpect);
2669 return std::move(this->m_unexpect);
2684 this->m_has_val = true;
2688 // levels above this can work independently of whether T is void
2691 this->m_has_val = true;
2696 new (std::addressof(this->m_unexpect))
2698 this->m_has_val = false;
2703 if (!this->m_has_val) {
2717 bool has_value() const { return this->m_has_val; }
2720 return this->m_unexpect;
2722 constexpr const unexpected<E> &geterr() const & { return this->m_unexpect; }
2724 return std::move(this->m_unexpect);
2728 return std::move(this->m_unexpect);
2755 this->construct_with(rhs);
2757 this->construct_error(rhs.geterr());
2767 // Unfortunately there's no way to achieve this in GCC < 5 AFAIK, since it
2793 this->construct_with(std::move(rhs));
2795 this->construct_error(std::move(rhs.geterr()));
2824 this->assign(rhs);
2825 return *this;
2832 // Unfortunately there's no way to achieve this in GCC < 5 AFAIK, since it
2870 this->assign(std::move(rhs));
2871 return *this;
3046 /// another object and manages the lifetime of this contained object `T`.
3067 T *valptr() { return std::addressof(this->m_val); }
3068 const T *valptr() const { return std::addressof(this->m_val); }
3069 unexpected<E> *errptr() { return std::addressof(this->m_unexpect); }
3071 return std::addressof(this->m_unexpect);
3077 return this->m_val;
3079 TL_EXPECTED_11_CONSTEXPR unexpected<E> &err() { return this->m_unexpect; }
3084 return this->m_val;
3086 constexpr const unexpected<E> &err() const { return this->m_unexpect; }
3100 return and_then_impl(*this, std::forward<F>(f));
3104 return and_then_impl(std::move(*this), std::forward<F>(f));
3108 return and_then_impl(*this, std::forward<F>(f));
3114 return and_then_impl(std::move(*this), std::forward<F>(f));
3122 return and_then_impl(*this, std::forward<F>(f));
3127 return and_then_impl(std::move(*this), std::forward<F>(f));
3132 return and_then_impl(*this, std::forward<F>(f));
3139 return and_then_impl(std::move(*this), std::forward<F>(f));
3148 return expected_map_impl(*this, std::forward<F>(f));
3152 return expected_map_impl(std::move(*this), std::forward<F>(f));
3156 return expected_map_impl(*this, std::forward<F>(f));
3160 return expected_map_impl(std::move(*this), std::forward<F>(f));
3167 return expected_map_impl(*this, std::forward<F>(f));
3173 return expected_map_impl(std::move(*this), std::forward<F>(f));
3179 return expected_map_impl(*this, std::forward<F>(f));
3187 return expected_map_impl(std::move(*this), std::forward<F>(f));
3196 return expected_map_impl(*this, std::forward<F>(f));
3200 return expected_map_impl(std::move(*this), std::forward<F>(f));
3204 return expected_map_impl(*this, std::forward<F>(f));
3208 return expected_map_impl(std::move(*this), std::forward<F>(f));
3215 return expected_map_impl(*this, std::forward<F>(f));
3221 return expected_map_impl(std::move(*this), std::forward<F>(f));
3227 return expected_map_impl(*this, std::forward<F>(f));
3235 return expected_map_impl(std::move(*this), std::forward<F>(f));
3244 return map_error_impl(*this, std::forward<F>(f));
3248 return map_error_impl(std::move(*this), std::forward<F>(f));
3252 return map_error_impl(*this, std::forward<F>(f));
3256 return map_error_impl(std::move(*this), std::forward<F>(f));
3263 return map_error_impl(*this, std::forward<F>(f));
3269 return map_error_impl(std::move(*this), std::forward<F>(f));
3275 return map_error_impl(*this, std::forward<F>(f));
3283 return map_error_impl(std::move(*this), std::forward<F>(f));
3291 return map_error_impl(*this, std::forward<F>(f));
3295 return map_error_impl(std::move(*this), std::forward<F>(f));
3299 return map_error_impl(*this, std::forward<F>(f));
3303 return map_error_impl(std::move(*this), std::forward<F>(f));
3310 return map_error_impl(*this, std::forward<F>(f));
3316 return map_error_impl(std::move(*this), std::forward<F>(f));
3322 return map_error_impl(*this, std::forward<F>(f));
3330 return map_error_impl(std::move(*this), std::forward<F>(f));
3336 return or_else_impl(*this, std::forward<F>(f));
3341 return or_else_impl(std::move(*this), std::forward<F>(f));
3346 return or_else_impl(*this, std::forward<F>(f));
3352 return or_else_impl(std::move(*this), std::forward<F>(f));
3435 this->construct(*rhs);
3437 this->construct_error(rhs.error());
3450 this->construct(*rhs);
3452 this->construct_error(rhs.error());
3464 this->construct(std::move(*rhs));
3466 this->construct_error(std::move(rhs.error()));
3478 this->construct(std::move(*rhs));
3480 this->construct_error(std::move(rhs.error()));
3516 this->m_has_val = true;
3519 return *this;
3544 this->m_has_val = true;
3551 this->m_has_val = true;
3555 return *this;
3565 this->destroy_val();
3567 this->m_has_val = false;
3570 return *this;
3580 this->destroy_val();
3582 this->m_has_val = false;
3585 return *this;
3595 this->m_has_val = true;
3613 this->m_has_val = true;
3620 this->m_has_val = true;
3635 this->m_has_val = true;
3653 this->m_has_val = true;
3660 this->m_has_val = true;
3686 std::swap(this->m_has_val, rhs.m_has_val);
3703 std::swap(this->m_has_val, rhs.m_has_val);
3716 std::swap(this->m_has_val, rhs.m_has_val);
3725 std::swap(this->m_has_val, rhs.m_has_val);
3739 std::swap(this->m_has_val, rhs.m_has_val);
3748 std::swap(this->m_has_val, rhs.m_has_val);
3766 rhs.swap(*this);
3809 constexpr bool has_value() const noexcept { return this->m_has_val; }
3810 constexpr explicit operator bool() const noexcept { return this->m_has_val; }
3863 return bool(*this) ? **this : static_cast<T>(std::forward<U>(v));
3870 return bool(*this) ? std::move(**this) : static_cast<T>(std::forward<U>(v));
4472 * If you use ICU, they parse this table and map it to code using a Python
4682 * The origin getter steps are to return the serialization of this's URL's
4698 * The username getter steps are to return this's URL's username.
4705 * The password getter steps are to return this's URL's password.
4712 * Return this's URL's port, serialized.
4719 * Return U+0023 (#), followed by this's URL's fragment.
4729 * When there is no host, this function returns the empty view.
4735 * Return this's URL's host, serialized.
4737 * When there is no host, this function returns the empty view.
4744 * this's URL.
4758 * Return U+003F (?), followed by this's URL's query.
4765 * The protocol getter steps are to return this's URL's scheme, followed by
4803 * Returns a string representation of this URL.
4807 * Returns a string diagram of this URL.
4859 * within this instance.
4867 return this->parse_port(view, false);
4966 * Assuming that x is an ASCII letter, this function returns the lower case
5027 * lowered cased before calling this function) and is not empty.
5152 * Returns a JSON string representation of this URL.
5163 * The origin getter steps are to return the serialization of this's URL's
5171 * The protocol getter steps are to return this's URL's scheme, followed by
5181 * When there is no host, this function returns the empty string.
5188 * Return this's URL's host, serialized.
5189 * When there is no host, this function returns the empty string.
5197 * this's URL.
5212 * Return U+003F (?), followed by this's URL's query.
5219 * The username getter steps are to return this's URL's username.
5285 * The password getter steps are to return this's URL's password.
5292 * Return this's URL's port, serialized.
5299 * Return U+0023 (#), followed by this's URL's fragment.
5405 return this->parse_port(view, false);
5444 * Set the scheme for this URL. The provided scheme should be a valid
6489 // Performance: instead of doing this potentially expensive check, we could
6575 // have a /.: sequence such as "non-spec:/.//". We test that this is the case.
6591 // components.host_end + 2 to be true. So we put this check first in the
6775 * Returns a simple JS-style iterator over all of the keys in this
6784 * Returns a simple JS-style iterator over all of the values in this
6792 * Returns a simple JS-style iterator over all of the entries in this
6974 // Performance optimization: Move this inside percent_encode.
7028 return url_search_params_keys_iter(*this);
7035 return url_search_params_values_iter(*this);
7042 return url_search_params_entries_iter(*this);