|
|
|||
File indexing completed on 2025-12-16 09:40:52
0001 // Copyright 2023 The Abseil Authors 0002 // 0003 // Licensed under the Apache License, Version 2.0 (the "License"); 0004 // you may not use this file except in compliance with the License. 0005 // You may obtain a copy of the License at 0006 // 0007 // https://www.apache.org/licenses/LICENSE-2.0 0008 // 0009 // Unless required by applicable law or agreed to in writing, software 0010 // distributed under the License is distributed on an "AS IS" BASIS, 0011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0012 // See the License for the specific language governing permissions and 0013 // limitations under the License. 0014 0015 #ifndef ABSL_LOG_INTERNAL_FNMATCH_H_ 0016 #define ABSL_LOG_INTERNAL_FNMATCH_H_ 0017 0018 #include "absl/base/config.h" 0019 #include "absl/strings/string_view.h" 0020 0021 namespace absl { 0022 ABSL_NAMESPACE_BEGIN 0023 namespace log_internal { 0024 // Like POSIX `fnmatch`, but: 0025 // * accepts `string_view` 0026 // * does not allocate any dynamic memory 0027 // * only supports * and ? wildcards and not bracket expressions [...] 0028 // * wildcards may match / 0029 // * no backslash-escaping 0030 bool FNMatch(absl::string_view pattern, absl::string_view str); 0031 } // namespace log_internal 0032 ABSL_NAMESPACE_END 0033 } // namespace absl 0034 0035 #endif // ABSL_LOG_INTERNAL_FNMATCH_H_
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|