Logo Search packages:      
Sourcecode: icu version File versions  Download package

Appendable Class Reference

#include <appendable.h>

Inheritance diagram for Appendable:
Collaboration diagram for Appendable:

List of all members.

Public Member Functions

virtual UBool appendCodePoint (UChar32 c)
virtual UBool appendCodeUnit (UChar c)=0
virtual UBool appendString (const UChar *s, int32_t length)
virtual UChargetAppendBuffer (int32_t minCapacity, int32_t desiredCapacityHint, UChar *scratch, int32_t scratchCapacity, int32_t *resultCapacity)
virtual UBool reserveAppendCapacity (int32_t appendCapacity)

Static Public Member Functions

static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Private Member Functions

virtual UClassID getDynamicClassID () const

Detailed Description

Base class for objects to which Unicode characters and strings can be appended. Combines elements of Java Appendable and ICU4C ByteSink.

This class can be used in APIs where it does not matter whether the actual destination is a UnicodeString, a UChar[] array, a UnicodeSet, or any other object that receives and processes characters and/or strings.

Implementation classes must implement at least appendCodeUnit(UChar). The base class provides default implementations for the other methods.

The methods do not take UErrorCode parameters. If an error occurs (e.g., out-of-memory), in addition to returning FALSE from failing operations, the implementation must prevent unexpected behavior (e.g., crashes) from further calls and should make the error condition available separately (e.g., store a UErrorCode, make/keep a UnicodeString bogus). ICU 4.8

Definition at line 49 of file appendable.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index