|
||||
File indexing completed on 2025-01-18 09:27:25
0001 // 0002 // Copyright 2017 The Abseil Authors. 0003 // 0004 // Licensed under the Apache License, Version 2.0 (the "License"); 0005 // you may not use this file except in compliance with the License. 0006 // You may obtain a copy of the License at 0007 // 0008 // https://www.apache.org/licenses/LICENSE-2.0 0009 // 0010 // Unless required by applicable law or agreed to in writing, software 0011 // distributed under the License is distributed on an "AS IS" BASIS, 0012 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0013 // See the License for the specific language governing permissions and 0014 // limitations under the License. 0015 // 0016 0017 #ifndef ABSL_STRINGS_INTERNAL_MEMUTIL_H_ 0018 #define ABSL_STRINGS_INTERNAL_MEMUTIL_H_ 0019 0020 #include <cstddef> 0021 #include <cstring> 0022 0023 #include "absl/base/port.h" // disable some warnings on Windows 0024 #include "absl/strings/ascii.h" // for absl::ascii_tolower 0025 0026 namespace absl { 0027 ABSL_NAMESPACE_BEGIN 0028 namespace strings_internal { 0029 0030 // Performs a byte-by-byte comparison of `len` bytes of the strings `s1` and 0031 // `s2`, ignoring the case of the characters. It returns an integer less than, 0032 // equal to, or greater than zero if `s1` is found, respectively, to be less 0033 // than, to match, or be greater than `s2`. 0034 int memcasecmp(const char* s1, const char* s2, size_t len); 0035 0036 } // namespace strings_internal 0037 ABSL_NAMESPACE_END 0038 } // namespace absl 0039 0040 #endif // ABSL_STRINGS_INTERNAL_MEMUTIL_H_
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |