Use string_view for a couple of Dbg methods

This commit is contained in:
Tim Wojtulewicz 2020-02-03 11:35:26 -05:00
parent eda1b4a23e
commit 92afe64525
3 changed files with 5 additions and 5 deletions

View file

@ -27,9 +27,9 @@
//
// Helper routines
//
bool string_is_regex(string s)
bool string_is_regex(string_view s)
{
return strpbrk(s.c_str(), "?*\\+");
return strpbrk(s.data(), "?*\\+");
}
void lookup_global_symbols_regex(const string& orig_regex, vector<ID*>& matches,