//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
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