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