diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/JavaScriptCore/icu/unicode/uversion.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/JavaScriptCore/icu/unicode/uversion.h')
-rw-r--r-- | Source/JavaScriptCore/icu/unicode/uversion.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/Source/JavaScriptCore/icu/unicode/uversion.h b/Source/JavaScriptCore/icu/unicode/uversion.h index e54cd55a6..74e309105 100644 --- a/Source/JavaScriptCore/icu/unicode/uversion.h +++ b/Source/JavaScriptCore/icu/unicode/uversion.h @@ -1,6 +1,6 @@ /* ******************************************************************************* -* Copyright (C) 2000-2010, International Business Machines +* Copyright (C) 2000-2011, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************* * @@ -67,7 +67,8 @@ typedef uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]; * When compiling for C++, it begins an extern "C++" linkage block (to protect * against cases in which an external client includes ICU header files inside * an extern "C" linkage block). - * If the C++ compiler supports namespaces, it also begins a namespace block. + * + * It also begins a versioned-ICU-namespace block. * @stable ICU 2.4 */ @@ -77,8 +78,8 @@ typedef uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]; * When not compiling for C++, it does nothing. * When compiling for C++, it ends the extern "C++" block begun by * U_NAMESPACE_BEGIN. - * If the C++ compiler supports namespaces, it also ends the namespace block - * begun by U_NAMESPACE_BEGIN. + * + * It also ends the versioned-ICU-namespace block begun by U_NAMESPACE_BEGIN. * @stable ICU 2.4 */ @@ -86,7 +87,9 @@ typedef uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]; * \def U_NAMESPACE_USE * This is used to specify that the rest of the code uses the * public ICU C++ API namespace. - * If the compiler doesn't support namespaces, this does nothing. + * This is invoked by default; we recommend that you turn it off: + * See the "Recommended Build Options" section of the ICU4C readme + * (http://source.icu-project.org/repos/icu/icu/trunk/readme.html#RecBuild) * @stable ICU 2.4 */ @@ -94,13 +97,14 @@ typedef uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]; * \def U_NAMESPACE_QUALIFIER * This is used to qualify that a function or class is part of * the public ICU C++ API namespace. - * If the compiler doesn't support namespaces, this does nothing. + * + * This macro is unnecessary since ICU 49 requires namespace support. + * You can just use "icu::" instead. * @stable ICU 2.4 */ /* Define namespace symbols if the compiler supports it. */ -#ifdef XP_CPLUSPLUS -#if U_HAVE_NAMESPACE +#ifdef __cplusplus # if U_DISABLE_RENAMING # define U_ICU_NAMESPACE icu namespace U_ICU_NAMESPACE { } @@ -122,12 +126,6 @@ typedef uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]; U_NAMESPACE_USE # endif #else -# define U_NAMESPACE_BEGIN extern "C++" { -# define U_NAMESPACE_END } -# define U_NAMESPACE_USE -# define U_NAMESPACE_QUALIFIER -#endif -#else # define U_NAMESPACE_BEGIN # define U_NAMESPACE_END # define U_NAMESPACE_USE @@ -180,7 +178,7 @@ u_versionFromUString(UVersionInfo versionArray, const UChar *versionString); * @stable ICU 2.4 */ U_STABLE void U_EXPORT2 -u_versionToString(UVersionInfo versionArray, char *versionString); +u_versionToString(const UVersionInfo versionArray, char *versionString); /** * Gets the ICU release version. The version array stores the version information |