|
Albert
|
#include <albert/matchconfig.h>
Configuration for string matching.
Initialize with designated initializers to avoid hard to find bugs on future changes.
Public Attributes | |
| bool | fuzzy = false |
| Match strings error tolerant. | |
| bool | ignore_case = true |
| Match strings case insensitive. | |
| bool | ignore_word_order = true |
| Match strings independent of their order. | |
| bool | ignore_diacritics = true |
| Match strings normalized. | |
| QRegularExpression | separator_regex = default_separator_regex |
| The separator regex used to split the compared strings. | |
Static Public Attributes | |
| static const uint | error_tolerance_divisor = 4 |
| The error tolerance. | |
|
static |
The error tolerance.
This hardcodes the error tolerance on enabled fuzzy to 25%.
| bool albert::util::MatchConfig::fuzzy = false |
Match strings error tolerant.
| bool albert::util::MatchConfig::ignore_case = true |
Match strings case insensitive.
| bool albert::util::MatchConfig::ignore_diacritics = true |
Match strings normalized.
| bool albert::util::MatchConfig::ignore_word_order = true |
Match strings independent of their order.
| QRegularExpression albert::util::MatchConfig::separator_regex = default_separator_regex |
The separator regex used to split the compared strings.