⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stringlist.h

📁 porting scintilla to qt
💻 H
字号:
/*  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -