Lines Matching +full:- +full:replace
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: Copyright 2017 Intel Corporation
7 #include <phosphor-logging/lg2.hpp>
90 std::regex searchPath(std::string(R"(i2c-\d+$)")); in getI2cDevicePaths()
92 std::regex searchBus(std::string(R"(\w[^-]*$)")); in getI2cDevicePaths()
154 // Skip calling nlohmann here, since it will never match a non-string in match()
195 out.emplace_back(str.substr(start, end - start)); in split()
203 std::string_view replace) in iReplaceAll() argument
205 if (search.empty() || search == replace) in iReplaceAll()
219 str.replace(match.begin(), match.end(), replace.begin(), replace.end()); in iReplaceAll()
224 std::string_view replace) in replaceAll() argument
234 str.replace(pos, search.size(), replace); in replaceAll()
235 pos += replace.size(); in replaceAll()