summaryrefslogtreecommitdiff
path: root/include/i18nlangtag
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-03 18:50:40 +0200
committerEike Rathke <erack@redhat.com>2013-09-03 20:35:39 +0200
commitb641e39d0aa9356717018e94925485d4755f8bbb (patch)
treed0479c4ce59727a47709a088aa92cb88706ef4b9 /include/i18nlangtag
parentd695e8d0ea9e144e24928c45d56f59a2b59867b1 (diff)
added convertToLanguageTypeWithFallback()
Change-Id: Ib57a7c6fc57192b4a615f5ad0e43c580769513e9
Diffstat (limited to 'include/i18nlangtag')
-rw-r--r--include/i18nlangtag/languagetag.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx
index d87c5e3f7821..946b459ffd44 100644
--- a/include/i18nlangtag/languagetag.hxx
+++ b/include/i18nlangtag/languagetag.hxx
@@ -435,6 +435,19 @@ public:
*/
static LanguageType convertToLanguageType( const OUString& rBcp47, bool bResolveSystem = true );
+ /** Convert BCP 47 string to MS-LangID with fallback, convenience method.
+
+ NOTE: exists only for consistency with the other convertTo...()
+ methods, internally uses a temporary LanguageTag instance for
+ conversion so does not save anything compared to
+ LanguageTag(rBcp47).makeFallback().getLanguageType(bResolveSystem).
+
+ @see makeFallback()
+
+ Always resolves an empty tag to the system locale.
+ */
+ static LanguageType convertToLanguageTypeWithFallback( const OUString& rBcp47 );
+
private:
enum Decision