diff options
Diffstat (limited to 'src/string.cc')
| -rw-r--r-- | src/string.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.cc b/src/string.cc index 23457413..46d492f1 100644 --- a/src/string.cc +++ b/src/string.cc @@ -83,7 +83,7 @@ void option_from_string(const String& str, Regex& re) } } -bool prefix_match(const String& str, const String& prefix) +bool prefix_match(StringView str, StringView prefix) { auto it = str.begin(); for (auto& c : prefix) @@ -94,7 +94,7 @@ bool prefix_match(const String& str, const String& prefix) return true; } -bool subsequence_match(const String& str, const String& subseq) +bool subsequence_match(StringView str, StringView subseq) { auto it = str.begin(); for (auto& c : subseq) |
