Rename function to be more descriptive

This commit is contained in:
topjohnwu
2020-09-04 06:21:25 -07:00
parent fd5ad91d26
commit c61ec2465f
3 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ int data_holder::patch(str_pairs list) {
return count;
}
bool data_holder::find(string_view pattern) {
bool data_holder::contains(string_view pattern) {
for (uint8_t *p = buf, *eof = buf + sz; p < eof; ++p) {
if (memcmp(p, pattern.data(), pattern.length() + 1) == 0)
return true;