~ubuntu-branches/ubuntu/vivid/kdepim/vivid

« back to all changes in this revision

Viewing changes to knode/utilities.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Jonathan Riddell, Rohan Garg, Scott Kitterman
  • Date: 2012-11-21 13:12:36 UTC
  • mfrom: (0.2.33)
  • Revision ID: package-import@ubuntu.com-20121121131236-32ijw9a2txrar80k
Tags: 4:4.9.80-0ubuntu1
[ Jonathan Riddell ]
* New upstream beta release

[ Rohan Garg ]
* Add nepomuk-core-dev to build-deps

[ Scott Kitterman ]
* Add new package, libpimcommon4
  - Add libpimcommon4.install
  - Add to debian/control, including kdepim-dbg and kdepim-dev depends
  - Add to kdepim-dev.install
* Remove usr/bin/backupmail and related files from kmail.install as they are
  not provided by upstream anymore
* Add usr/bin/pimsettingexporter and related files to kmail.install
* Add libnepomukwidgets-dev to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
389
389
  return -1;
390
390
}
391
391
 
392
 
QString Utils::rot13(const QString &s)
393
 
{
394
 
  QString r(s);
395
 
 
396
 
  for (int i=0; i<r.length(); i++) {
397
 
    if ( ( r[i] >= QLatin1Char('A') && r[i] <= QLatin1Char('M') ) ||
398
 
         ( r[i] >= QLatin1Char('a') && r[i] <= QLatin1Char('m') ) ) {
399
 
      r[i] = (char)((int)QChar(r[i]).toLatin1() + 13);
400
 
    } else {
401
 
      if  ( ( r[i] >= QLatin1Char('N') && r[i] <= QLatin1Char('Z') ) ||
402
 
            ( r[i] >= QLatin1Char('n') && r[i] <= QLatin1Char('z') ) ) {
403
 
        r[i] = (char)((int)QChar(r[i]).toLatin1() - 13);
404
 
      }
405
 
    }
406
 
  }
407
 
 
408
 
  return r;
409
 
}