Change the way to Convert UTF8 to wchar_t, and vice versa
[platform/framework/native/appfw.git] / src / base / inc / FBaseUtil_IcuConverter.h
index c0a1e25..9fcce25 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -34,21 +33,21 @@ namespace Tizen { namespace Base { namespace Utility
 
 class _ICUConverter
 {
-       public:
-               _ICUConverter();
-               ~_ICUConverter();
-               static result GetResultFromIcuErrorCode(UErrorCode& err);
-               bool OpenConverter(const Tizen::Base::String& encodingScheme);
-               wchar_t* ConvertToUcharN(const char* src, int srcLength);
-               char* ConvertFromUcharN(const wchar_t* pSrc, int srcLength, int& retLength);
-               void CloseConverter(void);
-
-       private:
-               UConverter* __pConverter;
+public:
+       _ICUConverter();
+       ~_ICUConverter();
+       bool OpenConverter(const Tizen::Base::String& encodingScheme);
+       wchar_t* ConvertToUcharN(const char* src, int srcLength);
+       char* ConvertFromUcharN(const wchar_t* pSrc, int srcLength, int& retLength);
+       void CloseConverter(void);
+
+private:
+       result GetResultFromIcuErrorCode(UErrorCode& err);
+       UConverter* __pConverter;
 }; // _ICUConverter
 
-char* ConvertWcsToMbsN(const wchar_t* pValue);
-wchar_t* ConvertMbsToWcsN(const char* pValue);
+char* WcharToUtf8N(const wchar_t* pValue);
+wchar_t* Utf8ToWcharN(const char* pValue);
 
 }}} // Tizen::Base::Utility