Use std::string_view::starts_with instead of boost::starts_with
This commit is contained in:
parent
83118d8f6e
commit
43033f4082
@ -124,8 +124,7 @@ inline bool requiresNameAnnounced(const StringView &from_name,
|
||||
|
||||
// check similarity of names
|
||||
const auto names_are_empty = from_name.empty() && to_name.empty();
|
||||
const auto name_is_contained =
|
||||
from_name.starts_with(to_name) || to_name.starts_with(from_name);
|
||||
const auto name_is_contained = from_name.starts_with(to_name) || to_name.starts_with(from_name);
|
||||
|
||||
const auto checkForPrefixOrSuffixChange = [](const std::string_view first,
|
||||
const std::string_view second,
|
||||
|
Loading…
Reference in New Issue
Block a user