VirtualBox

Changeset 24013 in vbox for trunk/src


Ignore:
Timestamp:
Oct 23, 2009 8:34:24 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/Frontends/VBoxBFE/USBProxyServiceLinux.cpp

    r18866 r24013  
    3333#include <VBox/err.h>
    3434
     35#include <iprt/alloc.h>
     36#include <iprt/ctype.h>
    3537#include <iprt/string.h>
    36 #include <iprt/alloc.h>
    3738#include <iprt/assert.h>
    3839#include <iprt/file.h>
     
    4243#include <string.h>
    4344#include <stdio.h>
    44 #include <ctype.h>
    4545#include <errno.h>
    4646#include <sys/statfs.h>
     
    282282{
    283283    char *pszNext = *ppszNext;
    284     if (!isspace (*pszNext) && *pszNext)
     284    if (!RT_C_IS_SPACE (*pszNext) && *pszNext)
    285285    {
    286286        /* skip unit */
     
    302302
    303303        /* blank or end of the line. */
    304         if (!isspace (*pszNext) && *pszNext)
     304        if (!RT_C_IS_SPACE (*pszNext) && *pszNext)
    305305        {
    306306            AssertMsgFailed (("pszNext=%s\n", pszNext));
     
    359359        if (paSuffs)
    360360        {
    361             if (!isspace (*pszNext) && *pszNext)
     361            if (!RT_C_IS_SPACE (*pszNext) && *pszNext)
    362362            {
    363363                for (PCUSBSUFF pSuff = paSuffs; pSuff->szSuff[0]; pSuff++)
    364364                {
    365365                    if (    !strncmp (pSuff->szSuff, pszNext, pSuff->cchSuff)
    366                         &&  (!pszNext[pSuff->cchSuff] || isspace (pszNext[pSuff->cchSuff])))
     366                        &&  (!pszNext[pSuff->cchSuff] || RT_C_IS_SPACE (pszNext[pSuff->cchSuff])))
    367367                    {
    368368                        if (pSuff->uDiv)
     
    507507    if (!psz)
    508508        return strchr (pszValue,  '\0');
    509     while (psz > pszValue && !isspace (psz[-1]))
     509    while (psz > pszValue && !RT_C_IS_SPACE (psz[-1]))
    510510        psz--;
    511511    Assert (psz > pszValue);
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