ICU-2194 convert the ouput of toASCII to lower case

X-SVN-Rev: 11298
This commit is contained in:
Ram Viswanadha 2003-03-13 22:17:24 +00:00
parent af4ba091da
commit 102ad41655

View file

@ -60,6 +60,13 @@ toASCIILower(UChar ch){
return ch;
}
inline static void
toASCIILower(UChar* src, int32_t srcLen){
for(int32_t i=0; i<srcLen; i++){
src[i] = toASCIILower(src[i]);
}
}
inline static int32_t
compareCaseInsensitiveASCII(const UChar* s1, int32_t s1Len,
const UChar* s2, int32_t s2Len){
@ -253,6 +260,8 @@ uidna_toASCII(const UChar* src, int32_t srcLength,
if(U_FAILURE(*status)){
goto CLEANUP;
}
// convert all codepoints to lower case ASCII
toASCIILower(b2,b2Len);
reqLength = b2Len+ACE_PREFIX_LENGTH;
if(reqLength > destCapacity){