~ubuntu-branches/ubuntu/jaunty/kdesdk/jaunty-backports

« back to all changes in this revision

Viewing changes to lokalize/src/catalog/gettext/catalogitem.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2008-09-26 12:14:03 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20080926121403-y5ozmtqa0mzj5uys
Tags: 4:4.1.2-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
using namespace GettextCatalog;
42
42
 
 
43
QRegExp CatalogItem::fuzzyRegExp("((?:^|\n)#(?:,[^,]*)*),\\s*fuzzy");
 
44
 
43
45
CatalogItem::CatalogItem()
44
46
 : d(new CatalogItemPrivate())
45
47
{
187
189
 
188
190
bool CatalogItem::isFuzzy() const
189
191
{
190
 
    return d->_comment.contains( QRegExp(",\\s*fuzzy") );
 
192
    return d->_comment.contains( fuzzyRegExp );
191
193
}
192
194
 
193
195
bool CatalogItem::isUntranslated() const
346
348
{
347
349
    QString& comment=d->_comment;
348
350
 
349
 
    comment.remove( QRegExp(",\\s*fuzzy"));
 
351
    comment.replace( fuzzyRegExp, "\\1" );
350
352
 
351
353
    // remove empty comment lines
352
354
    comment.remove( QRegExp("\n#\\s*$") );