19 #ifndef __ERRORCODE_H__ 20 #define __ERRORCODE_H__ 113 void assertSuccess()
const;
120 const char* errorName()
const;
139 #endif // __ERRORCODE_H__ ErrorCode()
Default constructor.
#define U_SUCCESS(x)
Does the error code indicate success?
#define U_FAILURE(x)
Does the error code indicate a failure?
Wrapper class for UErrorCode, with conversion operators for direct use in ICU C and C++ APIs...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
UErrorCode errorCode
Internal UErrorCode, accessible to subclasses.
C++ API: Common ICU base class UObject.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
UBool isSuccess() const
Tests for U_SUCCESS().
virtual void handleFailure() const
Called by assertSuccess() if isFailure() is true.
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...
UBool isFailure() const
Tests for U_FAILURE().
UMemory is the common ICU base class.
int8_t UBool
The ICU boolean type.