mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
Simplify
This commit is contained in:
parent
e0c19ee620
commit
0884f180f5
5 changed files with 23 additions and 27 deletions
|
@ -431,7 +431,7 @@ template<class N> bool string2Float(const string & s, N & n)
|
|||
|
||||
|
||||
/* Return true iff `s' starts with `prefix'. */
|
||||
bool hasPrefix(const string & s, const string & prefix);
|
||||
bool hasPrefix(std::string_view s, std::string_view prefix);
|
||||
|
||||
|
||||
/* Return true iff `s' ends in `suffix'. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue