]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/unicode/locdspnm.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / common / unicode / locdspnm.h
index ba168d8c95a6de81c88326d109f1958e01e4ba55..4f06f857044c6e9bf5119122394bd2458f760919 100644 (file)
@@ -1,3 +1,5 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
 ******************************************************************************
 * Copyright (C) 2010-2016, International Business Machines Corporation and
@@ -10,6 +12,8 @@
 
 #include "unicode/utypes.h"
 
+#if U_SHOW_CPLUSPLUS_API
+
 /**
  * \file
  * \brief C++ API: Provides display names of Locale and its components.
@@ -18,6 +22,7 @@
 #if !UCONFIG_NO_FORMATTING
 
 #include "unicode/locid.h"
+#include "unicode/strenum.h"
 #include "unicode/uscript.h"
 #include "unicode/uldnames.h"
 #include "unicode/udisplaycontext.h"
@@ -46,7 +51,7 @@ public:
      * @return a LocaleDisplayNames instance
      * @stable ICU 4.4
      */
-    static LocaleDisplayNames* U_EXPORT2 createInstance(const Locale& locale);
+    inline static LocaleDisplayNames* U_EXPORT2 createInstance(const Locale& locale);
 
     /**
      * Returns an instance of LocaleDisplayNames that returns names
@@ -201,4 +206,6 @@ U_NAMESPACE_END
 
 #endif
 
+#endif /* U_SHOW_CPLUSPLUS_API */
+
 #endif