diff -r e1b950c65cb4 -r 837f303aceeb epoc32/include/punycodeconverter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/punycodeconverter.h Wed Mar 31 12:33:34 2010 +0100 @@ -0,0 +1,48 @@ +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + + + +/** + @file + @publishedAll + @released +*/ + +#ifndef __PUNYCODECONVERTER_H__ +#define __PUNYCODECONVERTER_H__ + +#include +#include +#include +#include +#include + +const TInt KIDNMaxName = 256; +typedef TBuf8 TIdnHostName; + +class TPunyCodeDndName : public TIdnHostName + { +public: + IMPORT_C TInt IdnToPunycode(const THostName &aName); + IMPORT_C TInt PunycodeToIdn(TDes &aBuf, const TInt aStart=0); + +private: + TInt Encode(const THostName &aName, TInt aIndex); + TInt Decode(TInt aIndex, TDes &aBuf) const; + + }; + +#endif // __PUNYCODECONVERTER_H__