31 TQString Utils::stripTags( const TQString& str)
33 return TQString(str).replace(TQRegExp( "<[^>]*>"), "");
36 uint Utils::calcHash( const TQString& str)
40 const char* s = str.ascii();
43 while ( ( c = *s++ ) ) hash = ((hash << 5) + hash) + c;
47 TQString Utils::fileNameForUrl( const TQString& url_p)
51 url2 = url2.replace( "/", "_").replace( ":", "_");
53 if (url2.length() > 255)
54 url2 = url2.left(200) + TQString::number(Akregator::Utils::calcHash(url2), 16);
|