Source Code (Use browser search to find items of interest.)
Class Index
kdevelop'HlRangeDetect (./kdevelop/kdevelop/kwrite/highlight.h:83)
class HlRangeDetect : public HlItem {
public:
HlRangeDetect(int attribute, int context, QChar ch1, QChar ch2);
virtual const QChar *checkHgl(const QChar *);
protected:
QChar sChar1;
QChar sChar2;
};
/*
class KeywordData {
public:
KeywordData(const QString &);
~KeywordData();
char *s;
int len;
};
*/
kdevelop'HlRangeDetect::HlRangeDetect() (./kdevelop/kdevelop/kwrite/highlight.cpp:228)
HlRangeDetect::HlRangeDetect(int attribute, int context, QChar ch1, QChar ch2)
: HlItem(attribute,context) {
sChar1 = ch1;
sChar2 = ch2;
}
kdevelop'HlRangeDetect::checkHgl() (./kdevelop/kdevelop/kwrite/highlight.cpp:234)
const QChar *HlRangeDetect::checkHgl(const QChar *s) {
if (*s == sChar1) {
do {
s++;
if (*s == '\0') return 0L;
} while (*s != sChar2);
return s + 1;
}
return 0L;
}
/*
KeywordData::KeywordData(const char *str) {
len = strlen(str);
s = new char[len];
memcpy(s,str,len);
}
KeywordData::~KeywordData() {
delete s;
}
*/