Consolidate input completion code in preparation for advanced completion strategies (#4639)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Daniel Sage
2023-09-24 08:17:17 -04:00
committed by GitHub
parent 06eb30a50a
commit 37009e8e6b
39 changed files with 1358 additions and 621 deletions
+4
View File
@@ -39,6 +39,10 @@ public:
/// are in mixed case if available.
std::vector<QString> filterByPrefix(const QString &prefix) const;
/// Get all recent chatters. The first pair element contains the username
/// in lowercase, while the second pair element is the original case.
std::vector<std::pair<QString, QString>> all() const;
private:
// user name in lower case -> user name in normal case
cache::lru_cache<QString, QString> items;