equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003-2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
400 } |
400 } |
401 |
401 |
402 //Checking also last attribute of Subject Name string |
402 //Checking also last attribute of Subject Name string |
403 if ( j<commaArrItemCount ) |
403 if ( j<commaArrItemCount ) |
404 { |
404 { |
405 updateArr->AppendL(equalSignArr->At(equalArrItemCount-1)); |
405 updateArr->AppendL(equalSignArr->At(equalArrItemCount-1) + 1); |
406 updateArr->AppendL(subjLth-1); |
406 updateArr->AppendL(subjLth); |
|
407 |
|
408 updateArrCount++; |
|
409 updateArrCount++; |
407 } |
410 } |
408 |
411 |
409 TBuf8<256> resultBuf; |
412 TBuf8<256> resultBuf; |
410 resultBuf.Copy(aSubj); |
413 resultBuf.Copy(aSubj); |
411 |
414 |
414 //update subjectname acoording to updateArr array. |
417 //update subjectname acoording to updateArr array. |
415 if ( updateArr->Count()>0 ) |
418 if ( updateArr->Count()>0 ) |
416 { |
419 { |
417 while (i<updateArrCount) |
420 while (i<updateArrCount) |
418 { |
421 { |
419 TBuf8<3> updateStr(KReplacementChar); |
|
420 |
|
421 updateStr.Append(aSubj.Mid(updateArr->At(i),1)); |
|
422 |
|
423 if ( resultBuf.Length()<256 ) |
422 if ( resultBuf.Length()<256 ) |
424 resultBuf.Insert(updateArr->At(i) + i, KReplacementChar); |
423 resultBuf.Insert(updateArr->At(i) + i, KReplacementChar); |
425 else |
424 else |
426 User::Leave(KErrNotSupported); |
425 User::Leave(KErrNotSupported); |
427 i++; |
426 i++; |