mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
replaceStrings(): Use std::string_view
This commit is contained in:
parent
c0d1354b7d
commit
88798613ee
2 changed files with 4 additions and 4 deletions
|
@ -383,7 +383,7 @@ string trim(const string & s, const string & whitespace = " \n\r\t");
|
|||
|
||||
|
||||
/* Replace all occurrences of a string inside another string. */
|
||||
string replaceStrings(const std::string & s,
|
||||
string replaceStrings(std::string_view s,
|
||||
const std::string & from, const std::string & to);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue