Logo Search packages:      
Sourcecode: kcheckgmail version File versions

QString GMailParser::convertEntities ( QString  data  ) 

JavaScript entities converter.

This function converts all to their right representation.

data The data to be processed
The content of data with the converted entities

Definition at line 743 of file gmailparser.cpp.

Referenced by cleanUpData().

      QChar c;
      QString found;
      static QRegExp format("\\\\u([0-9a-zA-Z]{4})");
      if(!format.isValid()) {
            kdWarning() << k_funcinfo << "Invalid RX!\n"
                        << format.errorString() << endl;
      while(format.search(data) != -1) {
            found = format.cap(1);
            c = QChar(found.toUInt(0,16));
      return data;

Generated by  Doxygen 1.6.0   Back to index