Results 1 to 5 of 5

Thread: isDigit() isdigit()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default isDigit() isdigit()

    qt 4.3.4 on linux

    When I try to use isDigit() I get error ‘isDigit’ was not declared in this scope. Same goes for other functions from QChar like isNumber() (I did not test them all).

    When i try isdigit() I get error: cannot convert ‘QCharRef’ to ‘int’ for argument ‘1’ to ‘int isdigit(int)’

    But there is no entry in qassistent for isdigit().

    I now use:
    #define isDigit(c) ((c) >= '0' && (c) <= '9')

    but I'm curious as to what others say.
    Last edited by JeanC; 7th June 2008 at 14:44.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.