20#include <rtl/tencinfo.h>
26 if ( eEncoding == RTL_TEXTENCODING_ISO_8859_1 )
27 return RTL_TEXTENCODING_MS_1252;
29 else if ( eEncoding == RTL_TEXTENCODING_ISO_8859_9 )
30 return RTL_TEXTENCODING_MS_1254;
38 if ( eEncoding == RTL_TEXTENCODING_ISO_8859_5 )
39 return RTL_TEXTENCODING_MS_1251;
42 else if ( eEncoding == RTL_TEXTENCODING_ISO_8859_7 )
43 return RTL_TEXTENCODING_MS_1253;
45 else if ( eEncoding == RTL_TEXTENCODING_ISO_8859_2 )
46 return RTL_TEXTENCODING_MS_1250;
48 else if ( eEncoding == RTL_TEXTENCODING_ISO_8859_15 )
49 return RTL_TEXTENCODING_MS_1252;
56 rtl_TextEncodingInfo aTextEncInfo;
57 aTextEncInfo.StructSize =
sizeof( aTextEncInfo );
58 if ( rtl_getTextEncodingInfo( eEncoding, &aTextEncInfo ) )
60 if ( aTextEncInfo.MaximumCharSize > 1 )
61 return RTL_TEXTENCODING_MS_1252;
66 return RTL_TEXTENCODING_MS_1252;
rtl_TextEncoding GetExtendedCompatibilityTextEncoding(rtl_TextEncoding eEncoding)
return an encoding which has more defined Characters as the given encoding, but have the same definit...
rtl_TextEncoding GetSOLoadTextEncoding(rtl_TextEncoding eEncoding)
rtl_TextEncoding GetSOStoreTextEncoding(rtl_TextEncoding eEncoding)
rtl_TextEncoding GetOneByteTextEncoding(rtl_TextEncoding eEncoding)
if the given encoding is an multi-byte encoding (which allows more than one byte per char,...
rtl_TextEncoding GetExtendedTextEncoding(rtl_TextEncoding eEncoding)
return an encoding which has more defined Characters as the given encoding.