Lines Matching +full:- +full:- +full:match
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: Copyright 2017 Intel Corporation
7 #include <phosphor-logging/lg2.hpp>
8 #include <sdbusplus/bus/match.hpp>
31 std::smatch match; in findFiles() local
35 if (std::regex_search(path, match, search)) in findFiles()
49 std::smatch match; in findFiles() local
66 if (std::regex_search(path, match, search)) in findFiles()
90 std::regex searchPath(std::string(R"(i2c-\d+$)")); in getI2cDevicePaths()
92 std::regex searchBus(std::string(R"(\w[^-]*$)")); in getI2cDevicePaths()
113 /// Default match JSON/DBus match implementation
118 /// \param probe the probe statement to match against
121 static bool match(const nlohmann::json& probe, const T& value) in match() function
133 /// \param probe the probe statement to match against
136 static bool match(const nlohmann::json& probe, const std::string& value) in match() function
149 "Syntax error in regular expression: {PROBE} will never match", in match()
154 // Skip calling nlohmann here, since it will never match a non-string in match()
172 return MatchProbe<T>::match(probeRef, dbusValue); in operator ()()
195 out.emplace_back(str.substr(start, end - start)); in split()
212 std::ranges::subrange<std::string::iterator> match = in iReplaceAll() local
214 if (!match) in iReplaceAll()
219 str.replace(match.begin(), match.end(), replace.begin(), replace.end()); in iReplaceAll()