Changeset 51795 in vbox for trunk/src/VBox/Runtime/common/string
- Timestamp:
- Jul 2, 2014 1:01:50 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94636
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/utf-8-case.cpp
r51770 r51795 290 290 if (RT_SUCCESS(rc)) 291 291 { 292 uc = RTUniCpToLower(uc); 293 pszDst = RTStrPutCp(pszDst, uc); 292 RTUNICP uc2 = RTUniCpToLower(uc); 293 if (RT_LIKELY( uc2 == uc 294 || RTUniCpCalcUtf8Len(uc2) == RTUniCpCalcUtf8Len(uc))) 295 pszDst = RTStrPutCp(pszDst, uc2); 296 else 297 pszDst = RTStrPutCp(pszDst, uc); 294 298 } 295 299 else … … 323 327 if (RT_SUCCESS(rc)) 324 328 { 325 uc = RTUniCpToUpper(uc); 326 pszDst = RTStrPutCp(pszDst, uc); 329 RTUNICP uc2 = RTUniCpToUpper(uc); 330 if (RT_LIKELY( uc2 == uc 331 || RTUniCpCalcUtf8Len(uc2) == RTUniCpCalcUtf8Len(uc))) 332 pszDst = RTStrPutCp(pszDst, uc2); 333 else 334 pszDst = RTStrPutCp(pszDst, uc); 327 335 } 328 336 else
Note:
See TracChangeset
for help on using the changeset viewer.