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:48:45 +0200
commitfecde4c7099fdb7c5ee396b0f68ec517f3a08955 (patch)
tree8d60af84c27de0ec4972fa4c8b6c5e9aa1c81376 /include
parent59371dfca363601b051ebd289d695ca040a97531 (diff)
add bDisallowPrivate parameter to LanguageTag::isValidBcp47()
Change-Id: I0924b0fa268c38c238226d082cf26595bba72f0c
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 );