Skip to content

Commit

Permalink
ICU-20119 Update ICU4C #ifndef U_HIDE_XXX guard conditionals (PR #183)
Browse files Browse the repository at this point in the history
ICU-20119 Update ICU4C #ifndef U_HIDE_XXX guard conditionals (PR #183)
  • Loading branch information
pedberg-icu authored Oct 1, 2018
1 parent bac4c96 commit bcd0a41
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 17 deletions.
4 changes: 2 additions & 2 deletions icu4c/source/common/unicode/locid.h
Original file line number Diff line number Diff line change
Expand Up @@ -1058,12 +1058,12 @@ class U_COMMON_API Locale : public UObject {

/**
* A friend to allow the default locale to be set by either the C or C++ API.
* @internal
* @internal (private)
*/
friend Locale *locale_set_default_internal(const char *, UErrorCode& status);

/**
* @internal
* @internal (private)
*/
friend void U_CALLCONV locale_available_init();
};
Expand Down
8 changes: 4 additions & 4 deletions icu4c/source/common/unicode/rbbi.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class U_COMMON_API RuleBasedBreakIterator /*U_FINAL*/ : public BreakIterator {
* If present, UStack of LanguageBreakEngine objects that might handle
* dictionary characters. Searched from top to bottom to find an object to
* handle a given character.
* @internal
* @internal (private)
*/
UStack *fLanguageBreakEngines;

Expand All @@ -108,14 +108,14 @@ class U_COMMON_API RuleBasedBreakIterator /*U_FINAL*/ : public BreakIterator {
* If present, the special LanguageBreakEngine used for handling
* characters that are in the dictionary set, but not handled by any
* LangugageBreakEngine.
* @internal
* @internal (private)
*/
UnhandledEngine *fUnhandledBreakEngine;

/**
* Counter for the number of characters encountered with the "dictionary"
* flag set.
* @internal
* @internal (private)
*/
uint32_t fDictionaryCharCount;

Expand Down Expand Up @@ -150,7 +150,7 @@ class U_COMMON_API RuleBasedBreakIterator /*U_FINAL*/ : public BreakIterator {
*
* The break iterator adopts the memory, and will
* free it when done.
* @internal
* @internal (private)
*/
RuleBasedBreakIterator(RBBIDataHeader* data, UErrorCode &status);

Expand Down
1 change: 1 addition & 0 deletions icu4c/source/common/unicode/ucptrie.h
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ enum {
};

/* Internal functions and macros -------------------------------------------- */
// Do not conditionalize with #ifndef U_HIDE_INTERNAL_API, needed for public API

/** @internal */
U_INTERNAL int32_t U_EXPORT2
Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/common/unicode/uniset.h
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ class U_COMMON_API UnicodeSet U_FINAL : public UnicodeFilter {
void applyIntPropertyValue(const UCPMap *map,
UCPMapValueFilter *filter, const void *context,
UErrorCode &errorCode);
#endif
#endif /* U_HIDE_DRAFT_API */

/**
* Set the new pattern to cache.
Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/i18n/unicode/dcfmtsym.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ inline const UnicodeString& DecimalFormatSymbols::getConstDigitSymbol(int32_t di
ENumberFormatSymbol key = static_cast<ENumberFormatSymbol>(kOneDigitSymbol + digit - 1);
return fSymbols[key];
}
#endif
#endif /* U_HIDE_INTERNAL_API */

// -------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/i18n/unicode/decimfmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,7 @@ class U_I18N_API DecimalFormat : public NumberFormat {
void formatToDecimalQuantity(const Formattable& number, number::impl::DecimalQuantity& output,
UErrorCode& status) const;

#endif
#endif /* U_HIDE_INTERNAL_API */

#ifndef U_HIDE_DRAFT_API
/**
Expand Down
4 changes: 0 additions & 4 deletions icu4c/source/i18n/unicode/dtptngen.h
Original file line number Diff line number Diff line change
Expand Up @@ -498,27 +498,23 @@ class U_I18N_API DateTimePatternGenerator : public UObject {
private:
/**
* Constructor.
* @stable ICU 3.8
*/
DateTimePatternGenerator(UErrorCode & status);

/**
* Constructor.
* @stable ICU 3.8
*/
DateTimePatternGenerator(const Locale& locale, UErrorCode & status);

/**
* Copy constructor.
* @param other DateTimePatternGenerator to copy
* @stable ICU 3.8
*/
DateTimePatternGenerator(const DateTimePatternGenerator& other);

/**
* Default assignment operator.
* @param other DateTimePatternGenerator to copy
* @stable ICU 3.8
*/
DateTimePatternGenerator& operator=(const DateTimePatternGenerator& other);

Expand Down
6 changes: 3 additions & 3 deletions icu4c/source/i18n/unicode/numberformatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -2324,7 +2324,7 @@ class U_I18N_API LocalizedNumberFormatter
*/
int32_t getCallCount() const;

#endif
#endif /* U_HIDE_INTERNAL_API */

/**
* Creates a representation of this LocalizedNumberFormat as an icu::Format, enabling the use
Expand Down Expand Up @@ -2390,7 +2390,7 @@ class U_I18N_API LocalizedNumberFormatter
*/
void formatImpl(impl::UFormattedNumberData *results, UErrorCode &status) const;

#endif
#endif /* U_HIDE_INTERNAL_API */

/**
* Destruct this LocalizedNumberFormatter, cleaning up any memory it might own.
Expand Down Expand Up @@ -2592,7 +2592,7 @@ class U_I18N_API FormattedNumber : public UMemory {
*/
void getAllFieldPositionsImpl(FieldPositionIteratorHandler& fpih, UErrorCode& status) const;

#endif
#endif /* U_HIDE_INTERNAL_API */

/**
* Copying not supported; use move constructor instead.
Expand Down
7 changes: 6 additions & 1 deletion icu4c/source/i18n/unicode/unumberformatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,22 +253,27 @@ typedef enum UNumberGroupingStrategy {
*
* @draft ICU 61
*/
UNUM_GROUPING_THOUSANDS,
UNUM_GROUPING_THOUSANDS

#ifndef U_HIDE_INTERNAL_API
,
/**
* One more than the highest UNumberGroupingStrategy value.
*
* @internal ICU 62: The numeric value may change over time; see ICU ticket #12420.
*/
UNUM_GROUPING_COUNT
#endif /* U_HIDE_INTERNAL_API */

} UNumberGroupingStrategy;

#ifndef U_HIDE_DEPRECATED_API
/**
* Old name for compatibility: will be removed in ICU 64.
* @deprecated ICU 63
*/
typedef UNumberGroupingStrategy UGroupingStrategy;
#endif /* U_HIDE_DEPRECATED_API */

#endif /* U_HIDE_DRAFT_API */

Expand Down

0 comments on commit bcd0a41

Please sign in to comment.