VirtualBox

Changeset 24006 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Oct 23, 2009 8:02:13 AM (15 years ago)
Author:
vboxsync
Message:

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.

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