ICU-2699 fix compiler warnings

X-SVN-Rev: 12450
This commit is contained in:
Ram Viswanadha 2003-06-11 04:59:36 +00:00
parent b58657360a
commit 58a83101b4
2 changed files with 4 additions and 6 deletions

View File

@ -22,8 +22,6 @@
// ***************************************************************************** // *****************************************************************************
// class NamePrep // class NamePrep
// ***************************************************************************** // *****************************************************************************
static const UChar ASCII_SPACE = 0x0020;
U_NAMESPACE_BEGIN U_NAMESPACE_BEGIN
@ -35,10 +33,6 @@ NamePrep::NamePrep(UErrorCode& status){
doNFKC = TRUE; doNFKC = TRUE;
} }
UBool NamePrep::isNotProhibited(UChar32 ch){
return (UBool)(ch == ASCII_SPACE);
}
U_NAMESPACE_END U_NAMESPACE_END
#endif /* #if !UCONFIG_NO_IDNA */ #endif /* #if !UCONFIG_NO_IDNA */

View File

@ -82,7 +82,11 @@ private:
static const char fgClassID; static const char fgClassID;
}; };
#define ASCII_SPACE 0x0020
inline UBool NamePrep::isNotProhibited(UChar32 ch){
return (UBool)(ch == ASCII_SPACE);
}
U_NAMESPACE_END U_NAMESPACE_END