Lines Matching defs:view
132 bool begins_with(std::u32string_view view, std::u32string_view prefix);
133 bool begins_with(std::string_view view, std::string_view prefix);
135 bool constexpr is_ascii(std::u32string_view view);
136 bool constexpr is_ascii(std::string_view view);
1057 ada_really_inline bool begins_with(std::string_view view,
1059 // in C++20, you have view.begins_with(prefix)
1061 return view.size() >= prefix.size() &&
1062 std::equal(prefix.begin(), prefix.end(), view.begin());
1508 virtual size_t parse_port(std::string_view view,
1511 virtual ada_really_inline size_t parse_port(std::string_view view) noexcept {
1512 return this->parse_port(view, false);
1553 void encode_json(std::string_view view, out_iter out);
1655 const bool is_special, std::string_view& view) noexcept;
1675 * Finds the delimiter of a view in authority state.
1678 find_authority_delimiter_special(std::string_view view) noexcept;
1682 * Finds the delimiter of a view in authority state.
1685 find_authority_delimiter(std::string_view view) noexcept;
4729 * When there is no host, this function returns the empty view.
4737 * When there is no host, this function returns the empty view.
4751 * Compute the pathname length in bytes without instantiating a view or a
4864 std::string_view view, bool check_trailing_content) noexcept override;
4866 ada_really_inline size_t parse_port(std::string_view view) noexcept override {
4867 return this->parse_port(view, false);
4933 * Fast function to set the scheme from a view with a colon in the
5021 ada_really_inline bool begins_with(std::string_view view,
5029 ada_really_inline ada_constexpr bool is_ipv4(std::string_view view) noexcept;
5204 * Compute the pathname length in bytes without instantiating a view or a
5402 std::string_view view, bool check_trailing_content) noexcept override;
5404 ada_really_inline size_t parse_port(std::string_view view) noexcept override {
5405 return this->parse_port(view, false);
5701 ada_really_inline size_t url::parse_port(std::string_view view,
5703 ada_log("parse_port('", view, "') ", view.size());
5705 auto r = std::from_chars(view.data(), view.data() + view.size(), parsed_port);
5712 const size_t consumed = size_t(r.ptr - view.data());
5716 (consumed == view.size() || view[consumed] == '/' ||
5717 view[consumed] == '?' || (is_special() && view[consumed] == '\\'));
6606 std::string_view view, bool check_trailing_content) noexcept {
6607 ada_log("url_aggregator::parse_port('", view, "') ", view.size());
6609 auto r = std::from_chars(view.data(), view.data() + view.size(), parsed_port);
6616 const size_t consumed = size_t(r.ptr - view.data());
6620 (consumed == view.size() || view[consumed] == '/' ||
6621 view[consumed] == '?' || (is_special() && view[consumed] == '\\'));