Logo Search packages:      
Sourcecode: kmess version File versions  Download package

QString Emoticon::getPattern (  )  const

Get a regular expression pattern which will match any of the text shortcuts of the emoticon

Definition at line 205 of file emoticon.cpp.

{
  QString pattern;
  QStringList::const_iterator shortcut;

  for( shortcut = shortcuts_.begin(); shortcut != shortcuts_.end(); shortcut++ )
  {
    if( pattern.length() > 0 )
    {
      pattern += "|";
    }
    pattern += QRegExp::escape( *shortcut );
  }

  return pattern;
}


Generated by  Doxygen 1.6.0   Back to index