1999-08-16 21:50:52 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
1999-12-13 22:28:37 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 1998-1999, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
1999-08-16 21:50:52 +00:00
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* File error.h
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 05/28/99 stephen Creation.
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ERROR_H
|
|
|
|
#define ERROR_H 1
|
|
|
|
|
2001-05-25 00:16:28 +00:00
|
|
|
#define U_APPEND_CHAR32(c,target){\
|
2001-05-26 01:20:21 +00:00
|
|
|
if(c <= 0xffff){\
|
2001-05-25 00:16:28 +00:00
|
|
|
*(target)++ = (UChar)c;\
|
|
|
|
}\
|
2001-05-26 01:20:21 +00:00
|
|
|
else{\
|
2001-05-25 00:16:28 +00:00
|
|
|
c-=0x0010000;\
|
|
|
|
*(target)++ = (UChar)(0xd800+(UChar)(c>>10));\
|
|
|
|
*(target)++ = (UChar)(0xdc00+(UChar)(c&0x3ff));\
|
|
|
|
}\
|
|
|
|
}
|
1999-08-16 21:50:52 +00:00
|
|
|
void setErrorText(const char *s);
|
1999-12-22 22:57:04 +00:00
|
|
|
const char* getErrorText(void);
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
#endif
|