• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

akregator

  • Akregator
  • Utils
Static Public Member Functions | List of all members
Akregator::Utils Class Reference

#include <utils.h>

Static Public Member Functions

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

Detailed Description

Definition at line 34 of file utils.h.

Member Function Documentation

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

Definition at line 55 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 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:
  • utils.h
  • utils.cpp
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.

akregator

Skip menu "akregator"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal