url_util_internal.h 779 B

1234567891011121314151617181920212223
  1. // Copyright 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef URL_URL_UTIL_INTERNAL_H_
  5. #define URL_URL_UTIL_INTERNAL_H_
  6. #include "url/third_party/mozilla/url_parse.h"
  7. namespace url {
  8. // Given a string and a range inside the string, compares it to the given
  9. // lower-case |compare_to| buffer.
  10. bool CompareSchemeComponent(const char* spec,
  11. const Component& component,
  12. const char* compare_to);
  13. bool CompareSchemeComponent(const char16_t* spec,
  14. const Component& component,
  15. const char* compare_to);
  16. } // namespace url
  17. #endif // URL_URL_UTIL_INTERNAL_H_