1
0
Fork 0
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:
Eelco Dolstra 2020-11-10 14:59:03 +01:00
parent c0d1354b7d
commit 88798613ee
2 changed files with 4 additions and 4 deletions

View file

@ -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);