Go to the documentation of this file.
43 #define U_NO_THROW throw()
113 #ifdef SHAPER_MEMORY_DEBUG
114 static void * NewArray(
int size,
int count);
115 static void * GrowArray(
void * array,
int newSize );
116 static void FreeArray(
void * array );
119 #if U_OVERRIDE_CXX_ALLOCATION
128 static void * U_EXPORT2
operator new(
size_t size)
U_NO_THROW;
135 static void * U_EXPORT2
operator new[](
size_t size)
U_NO_THROW;
145 static void U_EXPORT2
operator delete(
void *p)
U_NO_THROW;
152 static void U_EXPORT2
operator delete[](
void *p)
U_NO_THROW;
154 #if U_HAVE_PLACEMENT_NEW
160 static inline void * U_EXPORT2
operator new(size_t,
void *ptr)
U_NO_THROW {
return ptr; }
167 static inline void U_EXPORT2
operator delete(
void *,
void *)
U_NO_THROW {}
169 #if U_HAVE_DEBUG_LOCATION_NEW
177 static void * U_EXPORT2
operator new(
size_t size,
const char* file,
int line)
U_NO_THROW;
185 static void U_EXPORT2
operator delete(
void* p,
const char* file,
int line)
U_NO_THROW;
238 virtual UClassID getDynamicClassID()
const;
284 #ifndef U_HIDE_INTERNAL_API
292 #define UOBJECT_DEFINE_RTTI_IMPLEMENTATION(myClass) \
293 UClassID U_EXPORT2 myClass::getStaticClassID() { \
294 static char classID = 0; \
295 return (UClassID)&classID; \
297 UClassID myClass::getDynamicClassID() const \
298 { return myClass::getStaticClassID(); }
309 #define UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass) \
310 UClassID U_EXPORT2 myClass::getStaticClassID() { \
311 static char classID = 0; \
312 return (UClassID)&classID; \
Basic definitions for ICU, for both C and C++ APIs.
int8_t UBool
The ICU boolean type.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
UObject is the common ICU "boilerplate" class.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UMemory is the common ICU base class.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
#define U_NAMESPACE_BEGIN