equal
deleted
inserted
replaced
332 |
332 |
333 TInt space(KErrNotFound); |
333 TInt space(KErrNotFound); |
334 TInt spaces(0); |
334 TInt spaces(0); |
335 TPtr ptr = aString->Des(); |
335 TPtr ptr = aString->Des(); |
336 |
336 |
|
337 //Trim leading and trailing spaces in URL before encoding spaces inside URL |
|
338 ptr.Trim(); |
|
339 |
337 for (TInt i = ptr.Length()-1; i > 0 ; i--) |
340 for (TInt i = ptr.Length()-1; i > 0 ; i--) |
338 { |
341 { |
339 if (ptr[i] == ' ') |
342 if (ptr[i] == ' ') |
340 { |
343 { |
341 spaces++; |
344 spaces++; |