VirtualBox

Changeset 24006 in vbox for trunk


Ignore:
Timestamp:
Oct 23, 2009 8:02:13 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53844
Message:

don't use <ctype.h> on UTF-8.

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strstrip.cpp

    r21337 r24006  
    4949{
    5050    /* left */
    51     while (isspace(*psz))
     51    while (RT_C_IS_SPACE(*psz))
    5252        psz++;
    5353
    5454    /* right */
    5555    char *pszEnd = strchr(psz, '\0');
    56     while (--pszEnd > psz && isspace(*pszEnd))
     56    while (--pszEnd > psz && RT_C_IS_SPACE(*pszEnd))
    5757        *pszEnd = '\0';
    5858
     
    7171{
    7272    /* left */
    73     while (isspace(*psz))
     73    while (RT_C_IS_SPACE(*psz))
    7474        psz++;
    7575
     
    8989    /* right */
    9090    char *pszEnd = strchr(psz, '\0');
    91     while (--pszEnd > psz && isspace(*pszEnd))
     91    while (--pszEnd > psz && RT_C_IS_SPACE(*pszEnd))
    9292        *pszEnd = '\0';
    9393
  • trunk/src/VBox/Runtime/r3/fs.cpp

    r23622 r24006  
    7575            const char *pszExt = &pszName[cbName - 3];
    7676            char szExt[4];
    77             szExt[0] = tolower(pszExt[0]);
    78             szExt[1] = tolower(pszExt[1]);
    79             szExt[2] = tolower(pszExt[2]);
     77            szExt[0] = RT_C_TO_LOWER(pszExt[0]);
     78            szExt[1] = RT_C_TO_LOWER(pszExt[1]);
     79            szExt[2] = RT_C_TO_LOWER(pszExt[2]);
    8080            szExt[3] = '\0';
    8181            if (    !memcmp(szExt, "exe", 4)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette