summaryrefslogtreecommitdiff
path: root/include/i18nlangtag
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-03 19:38:26 +0200
committerEike Rathke <erack@redhat.com>2013-09-03 20:35:41 +0200
commit9000ee0e9eabd3f1fc1e8c763054d54105005115 (patch)
tree41c7642c692e529b70118d79b2bb98dc419fac45 /include/i18nlangtag
parentcfe0862cc669893e4b1229183e9aa64776e464d3 (diff)
added convertToLocaleWithFallback()
Change-Id: I9eb1418721026a0d869b97aa577bc3196f960488
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 946b459ffd44..9b922f7e05ce 100644
--- a/include/i18nlangtag/languagetag.hxx
+++ b/include/i18nlangtag/languagetag.hxx
@@ -448,6 +448,19 @@ public:
*/
static LanguageType convertToLanguageTypeWithFallback( const OUString& rBcp47 );
+ /** Convert BCP 47 string to Locale 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().getLocale(bResolveSystem).
+
+ @see makeFallback()
+
+ Always resolves an empty tag to the system locale.
+ */
+ static com::sun::star::lang::Locale convertToLocaleWithFallback( const OUString& rBcp47 );
+
private:
enum Decision