diff options
author | Eike Rathke <erack@redhat.com> | 2013-04-24 23:42:47 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-04-25 00:01:07 +0200 |
commit | 4806df614a0e7e499aef3d10f77923f189207205 (patch) | |
tree | c936d3e57e4f497052ac618b1017801425a378cb /include | |
parent | 3ca2240e4818a554d290ca46536dddcf3d18d332 (diff) |
added LanguageTagIcu::getIcuLocale() with additional variant
Change-Id: I5a5689f449ac7653bb716f2ce67ea1039fe2559c
Diffstat (limited to 'include')
-rw-r--r-- | include/i18nlangtag/languagetagicu.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/i18nlangtag/languagetagicu.hxx b/include/i18nlangtag/languagetagicu.hxx index 20e5349f7875..2fc9db323fe3 100644 --- a/include/i18nlangtag/languagetagicu.hxx +++ b/include/i18nlangtag/languagetagicu.hxx @@ -12,6 +12,7 @@ #include <sal/config.h> #include <i18nlangtag/i18nlangtagdllapi.h> +#include <rtl/ustring.hxx> #include <unicode/locid.h> class LanguageTag; @@ -37,6 +38,17 @@ public: Always resolves an empty tag to the system locale. */ static icu::Locale getIcuLocale( const LanguageTag & rLanguageTag ); + + /** Obtain language tag as ICU icu::Locale, adding variant data. + + From the LanguageTag only language and country are used to construct + the icu:Locale, the variant field is copied from rVariant. For example + needed to create an icu::Collator instance where the variant field + denotes the algorithm to be used. + + Always resolves an empty tag to the system locale. + */ + static icu::Locale getIcuLocale( const LanguageTag & rLanguageTag, const OUString & rVariant ); }; #endif // INCLUDED_I18NLANGTAG_LANGUAGETAGICU_HXX |