rem: if ( !subtype || !*subtype ) return 0; switch ( subtype[0] ) { case 'h': case 'H': if ( qstricmp( subtype, "html" ) == 0 ) return TextHtmlBodyPartFormatter::create(); break; case 'c': case 'C': if ( qstricmp( subtype, "calendar" ) == 0 ) return TextVCalBodyPartFormatter::create(); break; case 'e': case 'E': case 'r': case 'R': if ( qstricmp( subtype, "enriched" ) == 0 || qstricmp( subtype, "richtext" ) == 0 ) return TextEnrichedBodyPartFormatter::create(); else if ( qstricmp( subtype, "rtf" ) == 0 ) return TextRtfBodyPartFormatter::create(); break; case 'x': case 'X': case 'v': case 'V': if ( qstricmp( subtype, "x-vcard" ) == 0 || qstricmp( subtype, "vcard" ) == 0 ) return TextVCardBodyPartFormatter::create(); break; }
add: if ( subtype && *subtype ) switch ( subtype[0] ) { case 'h': case 'H': if ( qstricmp( subtype, "html" ) == 0 ) return TextHtmlBodyPartFormatter::create(); break; case 'c': case 'C': if ( qstricmp( subtype, "calendar" ) == 0 ) return TextVCalBodyPartFormatter::create(); break; case 'e': case 'E': case 'r': case 'R': if ( qstricmp( subtype, "enriched" ) == 0 || qstricmp( subtype, "richtext" ) == 0 ) return TextEnrichedBodyPartFormatter::create(); else if ( qstricmp( subtype, "rtf" ) == 0 ) return TextRtfBodyPartFormatter::create(); break; case 'x': case 'X': case 'v': case 'V': if ( qstricmp( subtype, "x-vcard" ) == 0 || qstricmp( subtype, "vcard" ) == 0 ) return TextVCardBodyPartFormatter::create(); break; }
context:   const KMail::BodyPartFormatter * createForText( const char * subtype ) {    if ( !subtype || !*subtype )      return 0;    switch ( subtype[0] ) {    case 'h':    case 'H':      if ( qstricmp( subtype, "html" ) == 0 )	return TextHtmlBodyPartFormatter::create();      break;    case 'c':    case 'C':      if ( qstricmp( subtype, "calendar" ) == 0 )	return TextVCalBodyPartFormatter::create();      break;    case 'e':    case 'E':    case 'r':    case 'R':      if ( qstricmp( subtype, "enriched" ) == 0 ||	   qstricmp( subtype, "richtext" ) == 0 )	return TextEnrichedBodyPartFormatter::create();      else if ( qstricmp( subtype, "rtf" ) == 0 )	return TextRtfBodyPartFormatter::create();      break;    case 'x':    case 'X':    case 'v':    case 'V':      if ( qstricmp( subtype, "x-vcard" ) == 0 ||	   qstricmp( subtype, "vcard" ) == 0 )	return TextVCardBodyPartFormatter::create();      break;    }    return TextPlainBodyPartFormatter::create();  }