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

Class Index

libsearch'SiteConfig (./kdenetwork/libsearch/site.h:39)

class SiteConfig : public KSimpleConfig {

public:
  SiteConfig(const char *filename) : KSimpleConfig(filename, true) {}
  QString readEntry(const char *key);

};



libsearch'SiteConfig::readEntry() (./kdenetwork/libsearch/site.cpp:27)

QString SiteConfig::readEntry(const char *key) {
  QString res = KSimpleConfig::readEntry(key);
  int l = res.length();

  if (l > 2 & res[0] == '"' && res[l-1] == '"') {
    res = res.mid(1, l-2);
  }

  return res;
}