OXYGENHUB
◆ main openmsx / src / commands / CompletionCandidate.hh
408 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
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_ = {}; // empty means same as text
9
	bool partial = false;
10
	bool caseSensitive = true; // prefer to keep this 'true'
11
12
	[[nodiscard]] const std::string& display() const {
13
		return display_.empty() ? text : display_;
14
	}
15
};
16
17
#endif // COMPLETION_CANDIDATE_HH