equal
deleted
inserted
replaced
124 ReplaceChar(str, '"', '\''); |
124 ReplaceChar(str, '"', '\''); |
125 |
125 |
126 CleanupStack::PopAndDestroy(tmpBuf); |
126 CleanupStack::PopAndDestroy(tmpBuf); |
127 } |
127 } |
128 |
128 |
|
129 EXPORT_C void PodcastUtils::RemoveAllFormatting(TDes & aString) |
|
130 { |
|
131 // check for combination first so we prevent adding two spaces |
|
132 ReplaceString(aString,_L("\r\n"), _L(" ")); |
|
133 |
|
134 ReplaceString(aString,_L("\n"), _L(" ")); |
|
135 ReplaceString(aString,_L("\r"), _L(" ")); |
|
136 |
|
137 } |
|
138 |
129 EXPORT_C void PodcastUtils::ReplaceString(TDes & aString, const TDesC& aStringToReplace, const TDesC& aReplacement) |
139 EXPORT_C void PodcastUtils::ReplaceString(TDes & aString, const TDesC& aStringToReplace, const TDesC& aReplacement) |
130 { |
140 { |
131 TInt pos=aString.Find(aStringToReplace); |
141 TInt pos=aString.Find(aStringToReplace); |
132 TInt offset = 0; |
142 TInt offset = 0; |
133 while (pos != KErrNotFound) |
143 while (pos != KErrNotFound) |