Lines Matching refs:size
1034 return input.size() >= 2 && has_hex_prefix_unsafe(input);
1046 return input.size() >= 2 &&
1048 ((input.size() == 2) || (input[2] == '/' || input[2] == '\\' ||
1054 return input.size() >= 2 && (is_alpha(input[0]) && (input[1] == ':'));
1061 return view.size() >= prefix.size() &&
1644 * Modify the string_view so that it has the new size pos, assuming that pos <=
1645 * input.size(). This function cannot throw.
1730 * faster than std::to_string(x).size().
4342 int hash_value = (2 * scheme.size() + (unsigned)(scheme[0])) & 7;
4350 int hash_value = (2 * scheme.size() + (unsigned)(scheme[0])) & 7;
4365 int hash_value = (2 * scheme.size() + (unsigned)(scheme[0])) & 7;
4476 * section 2.3.4. ICU checks for label size and domain size, but these errors
4753 * @return size of the pathname in bytes
4982 * safe if input.size() >=2.
5206 * @return size of the pathname in bytes
5529 return path.size();
5537 out.protocol_end = uint32_t(get_protocol().size());
5547 out.username_end = uint32_t(out.host_start + username.size());
5549 out.host_start += uint32_t(username.size());
5552 out.host_start += uint32_t(password.size() + 1);
5555 out.host_end = uint32_t(out.host_start + host.value().size());
5560 out.host_end = uint32_t(out.host_start + host.value().size()) - 1;
5572 // size is greater than 1, and url's path[0] is the empty string, then
5587 running_index += path.size();
5591 running_index += get_search().size();
5592 if (get_search().size() == 0) {
5687 // size is greater than 1, and url's path[0] is the empty string, then
5703 ada_log("parse_port('", view, "') ", view.size());
5705 auto r = std::from_chars(view.data(), view.data() + view.size(), parsed_port);
5716 (consumed == view.size() || view[consumed] == '/' ||
5806 diff += uint32_t(username.size());
5810 diff += uint32_t(password.size()) + 1;
5815 components.protocol_end + diff + uint32_t(input.size());
5816 diff += uint32_t(input.size());
5821 if (buffer.size() > base.host_start && buffer[base.host_start] != '@') {
5837 input.size(), " bytes], buffer is '", buffer, "' [", buffer.size(),
5844 components.hash_start = uint32_t(buffer.size());
5854 buffer, "' [", buffer.size(), " bytes]");
5861 uint32_t input_size = uint32_t(input.size());
5880 ada_log("url_aggregator::update_base_hostname ", input, " [", input.size(),
5881 " bytes], buffer is '", buffer, "' [", buffer.size(), " bytes]");
5910 uint32_t ending_index = uint32_t(buffer.size());
5921 return buffer.size() == components.pathname_start;
5939 components.search_start = uint32_t(buffer.size());
5957 components.hash_start += uint32_t(input.size() + 1); // Do not forget `?`
5972 components.search_start = uint32_t(buffer.size());
5997 if (idx == input.size()) {
5999 components.hash_start += uint32_t(input.size() + 1); // Do not forget `?`
6009 uint32_t(encoded.size() + idx + 1); // Do not forget `?`
6017 ada_log("url_aggregator::update_base_pathname '", input, "' [", input.size(),
6032 // size is greater than 1, then append U+002F (/) followed by U+002E (.) to
6048 input.size(), " bytes] \n", to_diagram());
6062 uint32_t ending_index = uint32_t(buffer.size());
6071 components.search_start += uint32_t(input.size());
6074 components.hash_start += uint32_t(input.size());
6094 bool host_starts_with_at = buffer.size() > components.host_start &&
6139 uint32_t difference = uint32_t(input.size());
6207 uint32_t difference = uint32_t(input.size());
6258 uint32_t difference = uint32_t(input.size());
6303 uint32_t difference = uint32_t(value.size());
6392 uint32_t ending_index = uint32_t(buffer.size());
6505 // Performance: the common case is components.protocol_end == buffer.size()
6568 // If url's host is null, url does not have an opaque path, url's path's size
6585 ADA_ASSERT_TRUE(components.pathname_start + 1 < buffer.size());
6607 ada_log("url_aggregator::parse_port('", view, "') ", view.size());
6609 auto r = std::from_chars(view.data(), view.data() + view.size(), parsed_port);
6620 (consumed == view.size() || view[consumed] == '/' ||
6730 [[nodiscard]] inline size_t size() const noexcept;
6925 inline size_t url_search_params::size() const noexcept { return params.size(); }
6970 for (size_t i = 0; i < params.size(); i++) {
7047 return pos < params.params.size();