Update contrib.
2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * This file contains the implementation of the videotex string ASN1 object.
16 * The videotex string can include the following characters:
17 * <the character contents of this string type are not yet known - awaiting
25 EXPORT_C TASN1DecVideotexString::TASN1DecVideotexString(void)
29 EXPORT_C TInt TASN1DecVideotexString::CheckValid(const TDesC8& /*aSource*/)
35 EXPORT_C HBufC* TASN1DecVideotexString::DecodeDERL(const TDesC8& aSource,TInt& aPos)
38 TPtrC8 Source=aSource.Mid(aPos);
39 TASN1DecGeneric gen(Source);
41 HBufC* res = DecodeContentsL(gen.GetContentDER());
42 aPos+=gen.LengthDER();
46 HBufC* TASN1DecVideotexString::DecodeContentsL(const TDesC8& aSource)
48 HBufC* res = HBufC::NewL(aSource.Length());
49 TPtr pRes = res->Des();