2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FText_Iso885916EncodingCore.h
20 * @brief This is the header file for the _Iso885916EncodingCore class.
23 #ifndef _FTEXT_INTERNAL_ISO885916_ENCODING_CORE_H_
24 #define _FTEXT_INTERNAL_ISO885916_ENCODING_CORE_H_
27 #include "FText_EncodingCore.h"
30 namespace Tizen { namespace Text
33 class _Iso885916EncodingCore
34 : public _EncodingCore
37 _Iso885916EncodingCore(void);
38 ~_Iso885916EncodingCore(void);
40 static _EncodingCore* GetEncodingCoreImplN(const Tizen::Base::String& encodingFrom, const Tizen::Base::String& encodingTo);
41 virtual result GetAvailableEncodingsN(Tizen::Base::Collection::IList* pEncodingList);
43 virtual result GetByteCount(const wchar_t* pSrc, int srcLength, int& retLength);
44 virtual result GetCharCount(const byte* pSrc, int srcLength, int& retLength);
46 virtual byte* EncodeN(const wchar_t* pSrc, int srcLength, int& retLength);
47 virtual wchar_t* DecodeN(const byte* pSrc, int srcLength, int& retLength);
49 virtual int GetMaxByteCount(int charCount) const;
50 virtual int GetMaxCharCount(int byteCount) const;
52 virtual Tizen::Base::String GetName(void);
54 }; // _Iso885916EncodingCore
60 #endif //_FTEXT_INTERNAL_ISO885916_ENCODING_CORE_H_