diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-25 13:18:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-25 13:18:33 +0100 |
commit | d88493adfd549ec77f08ee919df609e645011b8b (patch) | |
tree | aea030de82e8e21231fdd5e516468b16bc16b487 /filter/inc | |
parent | 3ba9fd39e3aa74aca63dc2ab475d37b6680e12a8 (diff) |
rework GetDefaultTextEncoding etc -> getBestTextEncodingFromLocale
Diffstat (limited to 'filter/inc')
-rw-r--r-- | filter/inc/filter/msfilter/util.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/filter/inc/filter/msfilter/util.hxx b/filter/inc/filter/msfilter/util.hxx index 33a66585127c..01ff3738b64a 100644 --- a/filter/inc/filter/msfilter/util.hxx +++ b/filter/inc/filter/msfilter/util.hxx @@ -30,13 +30,16 @@ #define INCLUDED_MSFILTER_UTIL_HXX #include <rtl/textenc.h> +#include <com/sun/star/lang/Locale.hpp> #include "filter/msfilter/msfilterdllapi.h" namespace msfilter { namespace util { -/// Returns the default encoding, based on the application's locale. -MSFILTER_DLLPUBLIC rtl_TextEncoding GetDefaultTextEncoding(); +/// Returns the best-fit default 8bit encoding for a given locale +/// i.e. useful when dealing with legacy formats which use legacy text encodings without recording +/// what the encoding is, but you know or can guess the language +MSFILTER_DLLPUBLIC rtl_TextEncoding getBestTextEncodingFromLocale(const ::com::sun::star::lang::Locale &rLocale); } } |