[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kutils/kemoticons
From: Carlo Segato <brandon.ml () gmail ! com>
Date: 2008-05-24 12:17:57
Message-ID: 1211631477.496894.17781.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 812010 by segato:
make tokenize and parseEmoticons const
M +2 -2 kemoticonstheme.cpp
M +2 -2 kemoticonstheme.h
--- trunk/KDE/kdelibs/kutils/kemoticons/kemoticonstheme.cpp #812009:812010
@@ -158,7 +158,7 @@
d->provider->createNew();
}
-QString KEmoticonsTheme::parseEmoticons(const QString &text, ParseMode mode, const \
QStringList &exclude) +QString KEmoticonsTheme::parseEmoticons(const QString &text, \
ParseMode mode, const QStringList &exclude) const {
QList<Token> tokens = tokenize(text, mode | SkipHTML);
QString result;
@@ -183,7 +183,7 @@
return result;
}
-QList<KEmoticonsTheme::Token> KEmoticonsTheme::tokenize(const QString &message, \
ParseMode mode) +QList<KEmoticonsTheme::Token> KEmoticonsTheme::tokenize(const \
QString &message, ParseMode mode) const {
if (!d->provider) {
return QList<KEmoticonsTheme::Token>();
--- trunk/KDE/kdelibs/kutils/kemoticons/kemoticonstheme.h #812009:812010
@@ -116,7 +116,7 @@
* @return the text with emoticons replaced by html images
* @note SkipHTML is forced when using this function
*/
- QString parseEmoticons(const QString &text, ParseMode mode = DefaultParse, const \
QStringList &exclude = QStringList()); + QString parseEmoticons(const QString \
&text, ParseMode mode = DefaultParse, const QStringList &exclude = QStringList()) \
const;
/**
* Tokenize the message @p message with ParseMode @p mode
@@ -130,7 +130,7 @@
* // tokens[1].picHTMLCode = "<img align="center" title=":)" alt=":)" \
src="/path/to/:).png" width="24" height="24" />"
* @endcode
*/
- QList<Token> tokenize(const QString &message, ParseMode mode = DefaultParse);
+ QList<Token> tokenize(const QString &message, ParseMode mode = DefaultParse) \
const;
/**
* Load the theme inside the directory @p path
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic