mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-21900 check non-stable API macros, move class boilerplate out of conditionals
This commit is contained in:
parent
6330704974
commit
8575c0dace
1 changed files with 7 additions and 6 deletions
|
@ -1202,31 +1202,32 @@ class U_I18N_API Scale : public UMemory {
|
|||
|
||||
namespace impl {
|
||||
|
||||
// Do not enclose entire StringProp with #ifndef U_HIDE_INTERNAL_API, needed for a protected field
|
||||
// Do not enclose entire StringProp with #ifndef U_HIDE_INTERNAL_API, needed for a protected field.
|
||||
// And do not enclose its class boilerplate within #ifndef U_HIDE_INTERNAL_API.
|
||||
/**
|
||||
* Manages NumberFormatterSettings::usage()'s char* instance on the heap.
|
||||
* @internal
|
||||
*/
|
||||
class U_I18N_API StringProp : public UMemory {
|
||||
|
||||
#ifndef U_HIDE_INTERNAL_API
|
||||
|
||||
public:
|
||||
/** @internal */
|
||||
~StringProp();
|
||||
|
||||
/** @internal */
|
||||
StringProp(const StringProp &other);
|
||||
|
||||
/** @internal */
|
||||
StringProp &operator=(const StringProp &other);
|
||||
|
||||
#ifndef U_HIDE_INTERNAL_API
|
||||
|
||||
/** @internal */
|
||||
StringProp(StringProp &&src) U_NOEXCEPT;
|
||||
|
||||
/** @internal */
|
||||
StringProp &operator=(StringProp &&src) U_NOEXCEPT;
|
||||
|
||||
/** @internal */
|
||||
~StringProp();
|
||||
|
||||
/** @internal */
|
||||
int16_t length() const {
|
||||
return fLength;
|
||||
|
|
Loading…
Add table
Reference in a new issue