add comment re excessive copying in are_equal_with_hilites_removed

This commit is contained in:
natasha 2023-04-04 15:54:42 +01:00
parent 46691ef705
commit 95d77193af

View File

@ -26,6 +26,9 @@ void consume_hilites(const char * & ptr, Hilite * last_hilite = nullptr);
String remove_hilites(std::string_view string);
/*
* Copies both strings, for the simplicity of the implementation.
*/
bool are_equal_with_hilites_removed(std::string_view left, std::string_view right);
/*