17 #ifndef __APPENDABLE_H__ 18 #define __APPENDABLE_H__ 65 virtual UBool appendCodeUnit(char16_t c) = 0;
84 virtual UBool appendString(
const char16_t *s, int32_t length);
95 virtual UBool reserveAppendCapacity(int32_t appendCapacity);
141 virtual char16_t *getAppendBuffer(int32_t minCapacity,
142 int32_t desiredCapacityHint,
143 char16_t *scratch, int32_t scratchCapacity,
144 int32_t *resultCapacity);
224 int32_t desiredCapacityHint,
225 char16_t *scratch, int32_t scratchCapacity,
226 int32_t *resultCapacity);
234 #endif // __APPENDABLE_H__ virtual UBool reserveAppendCapacity(int32_t appendCapacity)
Tells the object that the caller is going to append roughly appendCapacity char16_ts.
virtual UBool appendCodeUnit(char16_t c)=0
Appends a 16-bit code unit.
An Appendable implementation which writes to a UnicodeString.
virtual UBool appendString(const char16_t *s, int32_t length)
Appends a string.
virtual char16_t * getAppendBuffer(int32_t minCapacity, int32_t desiredCapacityHint, char16_t *scratch, int32_t scratchCapacity, int32_t *resultCapacity)
Returns a writable buffer for appending and writes the buffer's capacity to *resultCapacity.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
virtual UBool appendCodePoint(UChar32 c)
Appends a code point.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
UnicodeStringAppendable(UnicodeString &s)
Aliases the UnicodeString (keeps its reference) for writing.
C++ API: Common ICU base class UObject.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Basic definitions for ICU, for both C and C++ APIs.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UObject is the common ICU "boilerplate" class.
int8_t UBool
The ICU boolean type.
Base class for objects to which Unicode characters and strings can be appended.