24 #if U_SHOW_CPLUSPLUS_API 49 #define U_NO_THROW noexcept 119 #ifdef SHAPER_MEMORY_DEBUG 120 static void * NewArray(
int size,
int count);
121 static void * GrowArray(
void * array,
int newSize );
122 static void FreeArray(
void * array );
125 #if U_OVERRIDE_CXX_ALLOCATION 134 static void * U_EXPORT2
operator new(
size_t size) noexcept;
141 static void * U_EXPORT2
operator new[](
size_t size) noexcept;
151 static void U_EXPORT2
operator delete(
void *p) noexcept;
158 static void U_EXPORT2
operator delete[](
void *p) noexcept;
165 static inline void * U_EXPORT2
operator new(size_t,
void *ptr) noexcept {
return ptr; }
172 static inline void U_EXPORT2
operator delete(
void *,
void *) noexcept {}
174 #if U_HAVE_DEBUG_LOCATION_NEW 182 static void * U_EXPORT2
operator new(
size_t size,
const char* file,
int line) noexcept;
190 static void U_EXPORT2
operator delete(
void* p,
const char* file,
int line) noexcept;
240 virtual UClassID getDynamicClassID()
const;
264 virtual inline bool operator==(
const UObject &other)
const {
return this==&other; }
286 #ifndef U_HIDE_INTERNAL_API 294 #define UOBJECT_DEFINE_RTTI_IMPLEMENTATION(myClass) \ 295 UClassID U_EXPORT2 myClass::getStaticClassID() { \ 296 static char classID = 0; \ 297 return (UClassID)&classID; \ 299 UClassID myClass::getDynamicClassID() const \ 300 { return myClass::getStaticClassID(); } 311 #define UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass) \ 312 UClassID U_EXPORT2 myClass::getStaticClassID() { \ 313 static char classID = 0; \ 314 return (UClassID)&classID; \ bool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
U_COMMON_API 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.
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.