akregator/src

Akregator::Utils Class Reference

List of all members.

Detailed Description

Definition at line 33 of file utils.h.


Static Public Member Functions

static QString stripTags (const QString &str)
static uint calcHash (const QString &str)
static QString fileNameForUrl (const QString &url)

Member Function Documentation

QString Akregator::Utils::stripTags ( const QString &  str  )  [static]

removes HTML/XML tags (everything between < and >, that is) from a string.

"<p><strong>foo</strong> bar</p>" becomes "foo bar"

Definition at line 31 of file utils.cpp.

uint Akregator::Utils::calcHash ( const QString &  str  )  [static]

taken from some website.

.. -fo djb2 This algorithm was first reported by Dan Bernstein many years ago in comp.lang.c

Definition at line 36 of file utils.cpp.

QString Akregator::Utils::fileNameForUrl ( const QString &  url  )  [static]

returns a file name for a URL, with chars like "/" ":" replaced by "_".

Too long URLs (>255 chars) are shortened and appended with a hash value.

Definition at line 47 of file utils.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys