]> granicus.if.org Git - icu/commitdiff
ICU-12738 ICU4C BRS, Some fixes to U_HIDE_XXX_API macros
authorPeter Edberg <pedberg@unicode.org>
Mon, 26 Sep 2016 06:53:00 +0000 (06:53 +0000)
committerPeter Edberg <pedberg@unicode.org>
Mon, 26 Sep 2016 06:53:00 +0000 (06:53 +0000)
X-SVN-Rev: 39346

icu4c/source/common/unicode/bytestriebuilder.h
icu4c/source/common/unicode/normlzr.h
icu4c/source/common/unicode/ucharstriebuilder.h
icu4c/source/i18n/unicode/dtitvinf.h
icu4c/source/i18n/unicode/uspoof.h

index aeec1dbda069f21692c8d6000e7cd24a7f348fcf..fe96887d511d7e3deacdaf4ab2dcb27e56bf39cf 100644 (file)
@@ -142,7 +142,6 @@ private:
     virtual int32_t getMinLinearMatch() const { return BytesTrie::kMinLinearMatch; }
     virtual int32_t getMaxLinearMatchLength() const { return BytesTrie::kMaxLinearMatchLength; }
 
- #ifndef U_HIDE_INTERNAL_API
     /**
      * @internal
      */
@@ -154,7 +153,6 @@ private:
     private:
         const char *s;
     };
-#endif
     
     // don't use #ifndef U_HIDE_INTERNAL_API with private class members or virtual methods.
     virtual Node *createLinearMatchNode(int32_t i, int32_t byteIndex, int32_t length,
index 308cdb743601835428c71f45d14cb00208f7415f..d529aa23ab41ef172f5f8bbf4c7b89e448e25b11 100644 (file)
@@ -181,6 +181,7 @@ public:
    * @deprecated ICU 56 Use Normalizer2 instead.
    */
   Normalizer(const CharacterIterator& iter, UNormalizationMode mode);
+#endif  /* U_HIDE_DEPRECATED_API */
 
   /**
    * Copy constructor.
@@ -188,7 +189,6 @@ public:
    * @deprecated ICU 56 Use Normalizer2 instead.
    */
   Normalizer(const Normalizer& copy);
-#endif  /* U_HIDE_DEPRECATED_API */
 
   /**
    * Destructor
@@ -752,9 +752,7 @@ private:
 
   FilteredNormalizer2*fFilteredNorm2;  // owned if not NULL
   const Normalizer2  *fNorm2;  // not owned; may be equal to fFilteredNorm2
-#ifndef U_HIDE_DEPRECATED_API
-  UNormalizationMode  fUMode;
-#endif  /* U_HIDE_DEPRECATED_API */
+  UNormalizationMode  fUMode;  // deprecated
   int32_t             fOptions;
 
   // The input text and our position in it
index aa7c4f2d17c3eeb7777bdd30f98adc28f35a0f4b..cc9fb77a9176e0e6bc921089e80c53901ccc1dc5 100644 (file)
@@ -150,7 +150,6 @@ private:
     virtual int32_t getMinLinearMatch() const { return UCharsTrie::kMinLinearMatch; }
     virtual int32_t getMaxLinearMatchLength() const { return UCharsTrie::kMaxLinearMatchLength; }
 
-#ifndef U_HIDE_INTERNAL_API
     class UCTLinearMatchNode : public LinearMatchNode {
     public:
         UCTLinearMatchNode(const UChar *units, int32_t len, Node *nextNode);
@@ -159,7 +158,6 @@ private:
     private:
         const UChar *s;
     };
-#endif
 
     virtual Node *createLinearMatchNode(int32_t i, int32_t unitIndex, int32_t length,
                                         Node *nextNode) const;
index bf2a07ada88565660384732a341f7e301d11702e..325eca66d6b66621d68e14d44d2faec8c5d071b1 100644 (file)
@@ -152,7 +152,8 @@ U_NAMESPACE_BEGIN
 
 class U_I18N_API DateIntervalInfo U_FINAL : public UObject {
 public:
-#ifndef U_HIDE_INTERNAL_API
+    // Do not enclose the protected default constructor with #ifndef U_HIDE_INTERNAL_API
+    // or else the compiler will create a public default constructor.
     /**
      * Default constructor.
      * It does not initialize any interval patterns except
@@ -167,7 +168,6 @@ public:
      * @internal ICU 4.0
      */
     DateIntervalInfo(UErrorCode& status);
-#endif  /* U_HIDE_INTERNAL_API */
 
 
     /**
index bb42f585765e253bdc1265d51c1950b48109a571..40b73380c57d521dbc9728e74af60db24ca07643 100644 (file)
@@ -576,11 +576,13 @@ typedef enum USpoofChecks {
          * @stable ICU 53
          */
         USPOOF_RESTRICTION_LEVEL_MASK = 0x7F000000,
+#ifndef U_HIDE_INTERNAL_API
         /**
          * An undefined restriction level.
          * @internal
          */
         USPOOF_UNDEFINED_RESTRICTIVE = -1
+#endif  /* U_HIDE_INTERNAL_API */
     } URestrictionLevel;
 
 /**