2003-02-28 21:35:25 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
2003-05-06 01:37:52 +00:00
|
|
|
* Copyright (C) 2003, International Business Machines
|
2003-02-28 21:35:25 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
2003-05-06 01:37:52 +00:00
|
|
|
* file name: nameprep.cpp
|
2003-02-28 21:35:25 +00:00
|
|
|
* encoding: US-ASCII
|
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
|
|
|
* created on: 2003feb1
|
|
|
|
* created by: Ram Viswanadha
|
|
|
|
*/
|
|
|
|
|
2003-05-06 01:37:52 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_IDNA
|
|
|
|
|
2003-02-28 21:35:25 +00:00
|
|
|
#include "nameprep.h"
|
|
|
|
// *****************************************************************************
|
|
|
|
// class NamePrep
|
|
|
|
// *****************************************************************************
|
|
|
|
static const UChar ASCII_SPACE = 0x0020;
|
|
|
|
|
|
|
|
|
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
const char NamePrep::fgClassID=0;
|
|
|
|
|
|
|
|
// default constructor
|
|
|
|
NamePrep::NamePrep(UErrorCode& status){
|
|
|
|
bidiCheck = TRUE;
|
|
|
|
doNFKC = TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
UBool NamePrep::isNotProhibited(UChar32 ch){
|
|
|
|
return (UBool)(ch == ASCII_SPACE);
|
|
|
|
}
|
|
|
|
|
|
|
|
U_NAMESPACE_END
|
|
|
|
|
2003-05-06 01:37:52 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_IDNA */
|