stringlist.h

来自「porting scintilla to qt」· C头文件 代码 · 共 32 行

H
32
字号
/*  sstring.h *  version 0.1 */#ifndef _sstring_h_#define _sstring_h_#include "constants.h"class _QSTE_DLL_ StringList{public:	// Each word contains at least one character - a empty word acts as sentinel at the end.	char **words;	char **wordsNoCase;	char *list;	int len;	bool onlyLineEnds;	///< Delimited by any white space or only line ends	bool sorted;	bool sortedNoCase;	int starts[256];	StringList(bool onlyLineEnds_ = false) :words(0), wordsNoCase(0), list(0), len(0), onlyLineEnds(onlyLineEnds_),	sorted(false), sortedNoCase(false) {}	~StringList() { Clear(); }	operator bool() { return len ? true : false; }	char *operator[](int ind) { return words[ind]; }	void Clear();	void Set(const char *s);	char *Allocate(int size);	void SetFromAllocated();	bool InList(const char *s);	//bool InListAbbreviated(const char *s, const char marker);	const char *GetNearestWord(const char *wordStart, int searchLen,bool ignoreCase = false, SString wordCharacters="", int wordIndex = -1);	char *GetNearestWords(const char *wordStart, int searchLen,	bool ignoreCase=false, char otherSeparator='\0', bool exactLen=false);};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?