akregator
#include <utils.h>
Definition at line 34 of file utils.h.
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::directionOf |
( |
const QString & |
str | ) |
|
|
static |
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 42 of file utils.cpp.
QString Akregator::Utils::stripTags |
( |
const QString & |
str | ) |
|
|
static |
removes HTML/XML tags (everything between < and >) from a string.
"<p><strong>foo</strong> bar</p>" becomes "foo bar"
Definition at line 31 of file utils.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:15 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.