summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-06-03 14:17:17 +0200
committerEike Rathke <erack@redhat.com>2014-06-03 14:55:24 +0200
commit1419b40584e109f96616b0015eed69ce6b86b292 (patch)
treeffd37b9a5e65c277dfd11971a258c833b6e99f00 /include
parent330b5bb0fbf863b40bbd95152cdd73949f22371b (diff)
add bDisallowPrivate parameter to LanguageTag::isValidBcp47()
Change-Id: I0924b0fa268c38c238226d082cf26595bba72f0c (cherry picked from commit fecde4c7099fdb7c5ee396b0f68ec517f3a08955)
Diffstat (limited to 'include')
-rw-r--r--include/i18nlangtag/languagetag.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx
index 0e12235c34ba..f3cf64293cd9 100644
--- a/include/i18nlangtag/languagetag.hxx
+++ b/include/i18nlangtag/languagetag.hxx
@@ -492,8 +492,14 @@ public:
canonicalized form is assigned, which may differ from the
original string even if that was a valid tag. If rString is not
a valid tag, nothing is assigned.
+
+ @param bDisallowPrivate
+ If TRUE, valid tags according to BCP 47 but reserved for
+ private use, like 'x-...', are not allowed and FALSE is
+ returned in this case.
*/
- static bool isValidBcp47( const OUString& rString, OUString* o_pCanonicalized = NULL );
+ static bool isValidBcp47( const OUString& rString, OUString* o_pCanonicalized = NULL,
+ bool bDisallowPrivate = false );
/** If nLang is a generated on-the-fly LangID */
static bool isOnTheFlyID( LanguageType nLang );