| e8555c89 Andy McCall |
1 |
#ifndef COMPLETION_CANDIDATE_HH |
| 2 |
#define COMPLETION_CANDIDATE_HH |
| 3 |
|
| 4 |
#include <string> |
| 5 |
|
| 6 |
struct CompletionCandidate { |
| 7 |
std::string text; |
| 8 |
std::string display_ = {}; |
| 9 |
bool partial = false; |
| 10 |
bool caseSensitive = true; |
| 11 |
|
| 12 |
[[nodiscard]] const std::string& display() const { |
| 13 |
return display_.empty() ? text : display_; |
| 14 |
} |
| 15 |
}; |
| 16 |
|
| 17 |
#endif |