src/lib/url/url_util.cc
// Given a string and a range inside the string, compares it to the given
// lower-case |compare_to| buffer.
Given a string and a range inside the string, compares it to the given
lower-case |compare_to| buffer.
Given a string and a range inside the string compares it to the given lower - case |compare_to| buffer .
inline bool DoCompareSchemeComponent(const char* spec, const Component& component,
                                     const char* compare_to) {
  if (component.is_invalid_or_empty())
    return compare_to[0] == 0;  
  return LowerCaseEqualsASCII(std::string_view(&spec[component.begin], component.len()),
                              std::string_view(compare_to));
}
inline bool DoCompareSchemeComponent ( const char * spec , const Component & component , const char * compare_to ) { if ( component . is_invalid_or_empty ( ) ) return compare_to [ 0 ] == 0 ; return LowerCaseEqualsASCII ( std :: string_view ( & spec [ component . begin ] , component . len ( ) ) , std :: string_view ( compare_to ) ) ; }
Given a string and a range inside the string, compares it to the given
lower-case |compare_to| buffer.
Given a string and a range inside the string compares it to the given lower - case |compare_to| buffer .
// When component is empty, match empty scheme.