isdigit

Discussion in 'C++' started by Christopher, Sep 1, 2011.

  1. Christopher

    Christopher Guest

    I see there is a int std::isdigit(int ch); function in
    <cctype>
    Is there a multibyte version?

    ::iswdigit seems to be a micrsoft function in <ctype.h> or <wchar.h>
     
    Christopher, Sep 1, 2011
    #1
    1. Advertisements

  2. Christopher

    Christopher Guest

    On Sep 1, 1:03 pm, Christopher <> wrote:
    > I see there is a     int std::isdigit(int ch);      function in
    > <cctype>
    > Is there a multibyte version?
    >
    > ::iswdigit seems to be a micrsoft function in <ctype.h> or <wchar.h>


    I mean "is there a wide character verison?"
     
    Christopher, Sep 1, 2011
    #2
    1. Advertisements

  3. Christopher

    Marc Guest

    Christopher wrote:

    > I see there is a int std::isdigit(int ch); function in
    > <cctype>
    > Is there a multibyte version?
    >
    > ::iswdigit seems to be a micrsoft function in <ctype.h> or <wchar.h>


    std::iswdigit is in <cwctype> (already in C++98).
     
    Marc, Sep 1, 2011
    #3
  4. Christopher

    Nobody Guest

    On Thu, 01 Sep 2011 11:03:16 -0700, Christopher wrote:

    > I see there is a int std::isdigit(int ch); function in
    > <cctype>
    > Is there a multibyte version?


    No. There is a wide-character version, iswdigit(), from <cwctype>, but
    there isn't a multi-byte version.

    > ::iswdigit seems to be a micrsoft function in <ctype.h> or <wchar.h>


    C99 has an iswdigit() function, declared in <wctype.h>.
     
    Nobody, Sep 2, 2011
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alf P. Steinbach

    isdigit() for characters greater than 127

    Alf P. Steinbach, Oct 9, 2004, in forum: C++
    Replies:
    4
    Views:
    3,515
    James Gregory
    Oct 9, 2004
  2. Replies:
    9
    Views:
    731
    Andreas Leitgeb
    Feb 9, 2007
  3. Carramba

    passing array to isdigit()

    Carramba, Feb 9, 2005, in forum: C Programming
    Replies:
    15
    Views:
    934
    Michael Mair
    Feb 21, 2005
  4. mdh

    isdigit

    mdh, Oct 6, 2006, in forum: C Programming
    Replies:
    10
    Views:
    970
  5. MooMaster
    Replies:
    2
    Views:
    489
    Dan Bishop
    May 1, 2008
  6. Donkey Hottie

    Re: print problem using isDigit

    Donkey Hottie, Sep 29, 2008, in forum: Java
    Replies:
    4
    Views:
    507
    RedGrittyBrick
    Sep 29, 2008
  7. Marco
    Replies:
    6
    Views:
    1,733
    Marco
    May 17, 2012
Loading...