Source Code (Use browser search to find items of interest.)

Class Index

kdevelop'HlStringDetect (./kdevelop/kdevelop/kwrite/highlight.h:74)

class HlStringDetect : public HlItem {
  public:
    HlStringDetect(int attribute, int context, const QString &);
    virtual ~HlStringDetect();
    virtual const QChar *checkHgl(const QChar *);
  protected:
    const QString str;
};


kdevelop'HlStringDetect::HlStringDetect() (./kdevelop/kdevelop/kwrite/highlight.cpp:216)

HlStringDetect::HlStringDetect(int attribute, int context, const QString &s)
  : HlItem(attribute, context), str(s) {
}


kdevelop'HlStringDetect::~HlStringDetect() (./kdevelop/kdevelop/kwrite/highlight.cpp:220)

HlStringDetect::~HlStringDetect() {
}


kdevelop'HlStringDetect::checkHgl() (./kdevelop/kdevelop/kwrite/highlight.cpp:223)

const QChar *HlStringDetect::checkHgl(const QChar *s) {
  if (memcmp(s, str.unicode(), str.length()*sizeof(QChar)) == 0) return s + str.length();
  return 0L;
}