Changeset 18528 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Mar 30, 2009 11:51:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/utf-8.cpp
r17189 r18528 1370 1370 } 1371 1371 1372 RTDECL(char *) RTStrToLower(char *psz) 1373 { 1374 char *pszTmp = psz; 1375 while(*pszTmp) 1376 { 1377 /* Get the codepoints */ 1378 RTUNICP cp = RTStrGetCp(pszTmp); 1379 /* To lower */ 1380 cp = RTUniCpToLower(cp); 1381 /* Put the converted codepoint back */ 1382 pszTmp = RTStrPutCp(pszTmp, cp); 1383 } 1384 return psz; 1385 } 1386 1387 RTDECL(char *) RTStrToUpper(char *psz) 1388 { 1389 char *pszTmp = psz; 1390 while(*pszTmp) 1391 { 1392 /* Get the codepoints */ 1393 RTUNICP cp = RTStrGetCp(pszTmp); 1394 /* To lower */ 1395 cp = RTUniCpToUpper(cp); 1396 /* Put the converted codepoint back */ 1397 pszTmp = RTStrPutCp(pszTmp, cp); 1398 } 1399 return psz; 1400 } 1401
Note:
See TracChangeset
for help on using the changeset viewer.