os/ossrv/genericopenlibs/openenvcore/libc/inc/wcharcnv.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 * Name        : wcharcnv.h
    16 * Part of     : MRT LIBC
    17 * Header file for wcharcnv.cpp. It contains the prototype and defines required in
    18 * wcharcnv.cpp
    19 * Version     : 
    20 * This material, including documentation and any related 
    21 * computer programs, is protected by copyright controlled by 
    22 * Nokia Corporation. All rights are reserved. Copying, 
    23 * including reproducing, storing, adapting or translating, any 
    24 * or all of this material requires the prior written consent of 
    25 * Nokia Corporation. This material also contains confidential 
    26 * information which may not be disclosed to others without the 
    27 * prior written consent of Nokia Corporation.
    28 *
    29 */
    30 
    31 
    32  
    33 #ifndef _WCHARCNV_H_
    34 #define	_WCHARCNV_H_
    35 
    36 enum _UTF16State
    37 {
    38 	_EUTF16InitialState,
    39 	_EUTF16_21BitExtensionState,
    40 };
    41 
    42 TInt _Utf16ToUtf8(char* dst, wchar_t aSrc, mbstate_t* ps, int aLen);
    43 TInt ConvertToUnicodeFromUtf8(TDes16& aUnicode, const TDesC8& aUtf8, mbstate_t *state);
    44 
    45 #endif //_WCHARCNV_H_
    46 
    47