equal
deleted
inserted
replaced
202 } |
202 } |
203 } |
203 } |
204 |
204 |
205 CleanupStack::PopAndDestroy(tmpBuf); |
205 CleanupStack::PopAndDestroy(tmpBuf); |
206 |
206 |
207 // chop away newlines at start |
207 if(str.Length()>1) |
208 while (str[0] == KLineBreak) { |
208 { |
209 str = str.Mid(1); |
209 // chop away newlines at start |
210 } |
210 while ((str[0] == KLineBreak) ) { |
211 |
211 str = str.Mid(1); |
212 // chop away newlines at end |
212 } |
213 |
213 |
214 while (str[str.Length()-1] == KLineBreak) { |
214 // chop away newlines at end |
215 str = str.Left(str.Length()-1); |
215 |
216 } |
216 while ((str[str.Length()-1] == KLineBreak)) { |
217 |
217 str = str.Left(str.Length()-1); |
218 str.Trim(); |
218 } |
|
219 |
|
220 str.Trim(); |
|
221 } |
219 } |
222 } |
220 |
223 |
221 EXPORT_C void PodcastUtils::RemoveAllFormatting(TDes & aString) |
224 EXPORT_C void PodcastUtils::RemoveAllFormatting(TDes & aString) |
222 { |
225 { |
223 // check for combination first so we prevent adding two spaces |
226 // check for combination first so we prevent adding two spaces |