scuffed-code/icu4c/source/tools/genrb/error.h
Ram Viswanadha c7298798f0 ICU-968 genrb now handles non-BMP codepoints.
Strict processing of invalid \uxxxx and \Uhhhhhhh notations

X-SVN-Rev: 4793
2001-05-25 00:16:28 +00:00

35 lines
876 B
C

/*
*******************************************************************************
*
* Copyright (C) 1998-1999, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
*
* File error.h
*
* Modification History:
*
* Date Name Description
* 05/28/99 stephen Creation.
*******************************************************************************
*/
#ifndef ERROR_H
#define ERROR_H 1
#define U_APPEND_CHAR32(c,target){\
if(c < 0xfffe){\
*(target)++ = (UChar)c;\
}\
else if(c >0xffff){\
c-=0x0010000;\
*(target)++ = (UChar)(0xd800+(UChar)(c>>10));\
*(target)++ = (UChar)(0xdc00+(UChar)(c&0x3ff));\
}\
}
void setErrorText(const char *s);
const char* getErrorText(void);
#endif