mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 15:05:53 +00:00
ICU-2194 convert the ouput of toASCII to lower case
X-SVN-Rev: 11298
This commit is contained in:
parent
af4ba091da
commit
102ad41655
1 changed files with 9 additions and 0 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Reference in a new issue