46 #define U_NO_THROW throw() 116 #ifdef SHAPER_MEMORY_DEBUG 117 static void * NewArray(
int size,
int count);
118 static void * GrowArray(
void * array,
int newSize );
119 static void FreeArray(
void * array );
122 #if U_OVERRIDE_CXX_ALLOCATION 131 static void * U_EXPORT2
operator new(
size_t size)
U_NOEXCEPT;
138 static void * U_EXPORT2
operator new[](
size_t size)
U_NOEXCEPT;
148 static void U_EXPORT2
operator delete(
void *p)
U_NOEXCEPT;
155 static void U_EXPORT2
operator delete[](
void *p)
U_NOEXCEPT;
157 #if U_HAVE_PLACEMENT_NEW 163 static inline void * U_EXPORT2
operator new(size_t,
void *ptr)
U_NOEXCEPT {
return ptr; }
170 static inline void U_EXPORT2
operator delete(
void *,
void *)
U_NOEXCEPT {}
172 #if U_HAVE_DEBUG_LOCATION_NEW 180 static void * U_EXPORT2
operator new(
size_t size,
const char* file,
int line)
U_NOEXCEPT;
188 static void U_EXPORT2
operator delete(
void* p,
const char* file,
int line)
U_NOEXCEPT;
241 virtual UClassID getDynamicClassID()
const;
287 #ifndef U_HIDE_INTERNAL_API 295 #define UOBJECT_DEFINE_RTTI_IMPLEMENTATION(myClass) \ 296 UClassID U_EXPORT2 myClass::getStaticClassID() { \ 297 static char classID = 0; \ 298 return (UClassID)&classID; \ 300 UClassID myClass::getDynamicClassID() const \ 301 { return myClass::getStaticClassID(); } 312 #define UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass) \ 313 UClassID U_EXPORT2 myClass::getStaticClassID() { \ 314 static char classID = 0; \ 315 return (UClassID)&classID; \ U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
#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...
UObject is the common ICU "boilerplate" class.
UMemory is the common ICU base class.
int8_t UBool
The ICU boolean type.