/*
*******************************************************************************
*
- * Copyright (C) 2003-2007, International Business Machines
+ * Copyright (C) 2003-2009, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
#define CAPITAL_A 0x0041
#define CAPITAL_Z 0x005A
-#define DATA_FILE_NAME "uidna"
-
inline static UChar
toASCIILower(UChar ch){
if(CAPITAL_A <= ch && ch <= CAPITAL_Z){
return 0;
}
- UStringPrepProfile* nameprep = usprep_open(NULL,DATA_FILE_NAME, status);
+ UStringPrepProfile* nameprep = usprep_openByType(USPREP_RFC3491_NAMEPREP, status);
if(U_FAILURE(*status)){
return -1;
return 0;
}
- UStringPrepProfile* nameprep = usprep_open(NULL, DATA_FILE_NAME, status);
+ UStringPrepProfile* nameprep = usprep_openByType(USPREP_RFC3491_NAMEPREP, status);
if(U_FAILURE(*status)){
return -1;
int32_t reqLength = 0;
- UStringPrepProfile* nameprep = usprep_open(NULL, DATA_FILE_NAME, status);
+ UStringPrepProfile* nameprep = usprep_openByType(USPREP_RFC3491_NAMEPREP, status);
if(U_FAILURE(*status)){
return 0;
int32_t reqLength = 0;
- UStringPrepProfile* nameprep = usprep_open(NULL, DATA_FILE_NAME, status);
+ UStringPrepProfile* nameprep = usprep_openByType(USPREP_RFC3491_NAMEPREP, status);
if(U_FAILURE(*status)){
return 0;