Update to spice2x-25-04-25 (pre-apply)
> broken commit
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "option.h"
|
||||
|
||||
#include "util/logging.h"
|
||||
#include "util/utils.h"
|
||||
|
||||
void Option::value_add(std::string new_value) {
|
||||
|
||||
@@ -97,3 +98,15 @@ uint64_t Option::value_hex64() const {
|
||||
}
|
||||
return affinity;
|
||||
}
|
||||
|
||||
bool Option::search_match(const std::string &query_in_lower_case) {
|
||||
if (this->search_string.empty()) {
|
||||
const auto ¶m =
|
||||
this->definition.display_name.empty() ?
|
||||
this->definition.name : this->definition.display_name;
|
||||
|
||||
const auto s = this->definition.title + " -" + param;
|
||||
this->search_string = strtolower(s);
|
||||
}
|
||||
return this->search_string.find(query_in_lower_case) != std::string::npos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user