imgtools/imglib/uniconv/include/uniconv.hpp
changeset 626 ac03b93ca9c4
equal deleted inserted replaced
625:a1925fb7753a 626:ac03b93ca9c4
       
     1 /*
       
     2 * Copyright (c) 1995-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 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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BU_ROMTOOLS_IMGLIB_UNICONV_HPP_
       
    20 #define BU_ROMTOOLS_IMGLIB_UNICONV_HPP_
       
    21 
       
    22 
       
    23 /**
       
    24  * @class UniConv
       
    25  * @brief a helper class used to convert text stream from one encoding into another.
       
    26  */
       
    27 class UniConv
       
    28 {
       
    29 public:
       
    30 	static int DefaultCodePage2UTF8(const char* DCPStringRef, unsigned int DCPLength, char** UTF8StringRef, unsigned int* UTFLength) throw ();
       
    31 
       
    32 	static int UTF82DefaultCodePage(const char* UTF8StringRef, unsigned int UTFLength, char** DCPStringRef, unsigned int* DCPLength) throw ();
       
    33 
       
    34 	static bool IsPureASCIITextStream(const char* StringRef) throw ();
       
    35 protected:
       
    36 private:
       
    37 	UniConv(void);
       
    38 
       
    39 	UniConv(const UniConv&);
       
    40 
       
    41 	UniConv& operator = (const UniConv&);
       
    42 };
       
    43 
       
    44 
       
    45 #endif  /* defined BU_ROMTOOLS_IMGLIB_UNICONV_HPP_ */