]> granicus.if.org Git - icu/commitdiff
ICU-10565 Added warning, like in Java.
authorMark Davis <mark@macchiato.com>
Mon, 7 Mar 2016 17:08:37 +0000 (17:08 +0000)
committerMark Davis <mark@macchiato.com>
Mon, 7 Mar 2016 17:08:37 +0000 (17:08 +0000)
X-SVN-Rev: 38499

icu4c/source/common/unicode/uloc.h

index 2da74e730c31920e95d6305823c8d50e1fdc9eb4..cb659e0a9b1e3da73d6e8f521ad9f889e78022ff 100644 (file)
@@ -1,6 +1,6 @@
 /*
 **********************************************************************
-*   Copyright (C) 1997-2015, International Business Machines
+*   Copyright (C) 1997-2016, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 **********************************************************************
 *
@@ -588,6 +588,8 @@ uloc_getDisplayScript(const char* locale,
 
 /**
  * Gets the country name suitable for display for the specified locale.
+ * Warning: this is for the region part of a valid locale ID; it cannot just be the region code (like "FR").
+ * To get the display name for a region alone, or for other options, use ULocaleDisplayNames instead.
  *
  * @param locale the locale to get the displayable country code with. NULL may be used to specify the default.
  * @param displayLocale Specifies the locale to be used to display the name.  In other words,