engine/src/PodcastUtils.cpp
branchsymbian1
changeset 161 ce4f70a6d1d2
parent 60 4d230e702aa3
child 228 c553fa9dcbe5
child 240 03e8cc4066ba
child 257 f5377b5817a0
equal deleted inserted replaced
160:6477d22a5dca 161:ce4f70a6d1d2
   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