--- a/engine/src/PodcastUtils.cpp Thu Feb 25 20:20:46 2010 +0000
+++ b/engine/src/PodcastUtils.cpp Thu Feb 25 21:08:38 2010 +0000
@@ -126,6 +126,16 @@
CleanupStack::PopAndDestroy(tmpBuf);
}
+EXPORT_C void PodcastUtils::RemoveAllFormatting(TDes & aString)
+ {
+ // check for combination first so we prevent adding two spaces
+ ReplaceString(aString,_L("\r\n"), _L(" "));
+
+ ReplaceString(aString,_L("\n"), _L(" "));
+ ReplaceString(aString,_L("\r"), _L(" "));
+
+ }
+
EXPORT_C void PodcastUtils::ReplaceString(TDes & aString, const TDesC& aStringToReplace, const TDesC& aReplacement)
{
TInt pos=aString.Find(aStringToReplace);