X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/0f5d89e82340278ed3d7d50029f37cab2c41a57e..HEAD:/icuSources/common/unicode/bytestream.h diff --git a/icuSources/common/unicode/bytestream.h b/icuSources/common/unicode/bytestream.h index df324d9d..0d60492f 100644 --- a/icuSources/common/unicode/bytestream.h +++ b/icuSources/common/unicode/bytestream.h @@ -38,10 +38,12 @@ */ #include "unicode/utypes.h" + +#if U_SHOW_CPLUSPLUS_API + #include "unicode/uobject.h" #include "unicode/std_string.h" -#if U_SHOW_CPLUSPLUS_API U_NAMESPACE_BEGIN /** @@ -238,13 +240,12 @@ class StringByteSink : public ByteSink { * @stable ICU 4.2 */ StringByteSink(StringClass* dest) : dest_(dest) { } -#ifndef U_HIDE_DRAFT_API /** * Constructs a ByteSink that reserves append capacity and will append bytes to the dest string. * * @param dest pointer to string object to append to * @param initialAppendCapacity capacity beyond dest->length() to be reserve()d - * @draft ICU 60 + * @stable ICU 60 */ StringByteSink(StringClass* dest, int32_t initialAppendCapacity) : dest_(dest) { if (initialAppendCapacity > 0 && @@ -252,7 +253,6 @@ class StringByteSink : public ByteSink { dest->reserve(dest->length() + initialAppendCapacity); } } -#endif // U_HIDE_DRAFT_API /** * Append "bytes[0,n-1]" to this. * @param data the pointer to the bytes @@ -269,6 +269,7 @@ class StringByteSink : public ByteSink { }; U_NAMESPACE_END -#endif // U_SHOW_CPLUSPLUS_API + +#endif /* U_SHOW_CPLUSPLUS_API */ #endif // __BYTESTREAM_H__