os/ossrv/genericopenlibs/openenvcore/libc/inc/wcharcnv.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/openenvcore/libc/inc/wcharcnv.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,47 @@
     1.4 +/*
     1.5 +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +* Name        : wcharcnv.h
    1.19 +* Part of     : MRT LIBC
    1.20 +* Header file for wcharcnv.cpp. It contains the prototype and defines required in
    1.21 +* wcharcnv.cpp
    1.22 +* Version     : 
    1.23 +* This material, including documentation and any related 
    1.24 +* computer programs, is protected by copyright controlled by 
    1.25 +* Nokia Corporation. All rights are reserved. Copying, 
    1.26 +* including reproducing, storing, adapting or translating, any 
    1.27 +* or all of this material requires the prior written consent of 
    1.28 +* Nokia Corporation. This material also contains confidential 
    1.29 +* information which may not be disclosed to others without the 
    1.30 +* prior written consent of Nokia Corporation.
    1.31 +*
    1.32 +*/
    1.33 +
    1.34 +
    1.35 + 
    1.36 +#ifndef _WCHARCNV_H_
    1.37 +#define	_WCHARCNV_H_
    1.38 +
    1.39 +enum _UTF16State
    1.40 +{
    1.41 +	_EUTF16InitialState,
    1.42 +	_EUTF16_21BitExtensionState,
    1.43 +};
    1.44 +
    1.45 +TInt _Utf16ToUtf8(char* dst, wchar_t aSrc, mbstate_t* ps, int aLen);
    1.46 +TInt ConvertToUnicodeFromUtf8(TDes16& aUnicode, const TDesC8& aUtf8, mbstate_t *state);
    1.47 +
    1.48 +#endif //_WCHARCNV_H_
    1.49 +
    1.50 +