Go to the documentation of this file.
17 #ifndef __APPENDABLE_H__
18 #define __APPENDABLE_H__
27 #if U_SHOW_CPLUSPLUS_API
68 virtual UBool appendCodeUnit(char16_t c) = 0;
87 virtual UBool appendString(
const char16_t *s, int32_t length);
98 virtual UBool reserveAppendCapacity(int32_t appendCapacity);
144 virtual char16_t *getAppendBuffer(int32_t minCapacity,
145 int32_t desiredCapacityHint,
146 char16_t *scratch, int32_t scratchCapacity,
147 int32_t *resultCapacity);
227 int32_t desiredCapacityHint,
228 char16_t *scratch, int32_t scratchCapacity,
229 int32_t *resultCapacity)
override;
239 #endif // __APPENDABLE_H__
virtual UBool appendCodeUnit(char16_t c)=0
Appends a 16-bit code unit.
virtual UBool appendString(const char16_t *s, int32_t length)
Appends a string.
Basic definitions for ICU, for both C and C++ APIs.
int8_t UBool
The ICU boolean type, a signed-byte integer.
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.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
UnicodeStringAppendable(UnicodeString &s)
Aliases the UnicodeString (keeps its reference) for writing.
UObject is the common ICU "boilerplate" class.
virtual UBool appendCodePoint(UChar32 c)
Appends a code point.
An Appendable implementation which writes to a UnicodeString.
Base class for objects to which Unicode characters and strings can be appended.
virtual UBool reserveAppendCapacity(int32_t appendCapacity)
Tells the object that the caller is going to append roughly appendCapacity char16_ts.
C++ API: Common ICU base class UObject.