Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ctype(3C)

wchrtbl(1M)



WCTYPE(3W-SVR4)     RISC/os Reference Manual      WCTYPE(3W-SVR4)



NAME
     wctype: iswalpha, iswupper, iswlowfer, iswdigit, iswxdigit,
          iswalnum, iswspace, iswpunct, iswprint, iswgraph,
          iswcntrl, iswascii, isphonogram, isideogram, isenglish,
          isnumber, isspecial - classify ASCII and supplementary
          code set characters

SYNOPSIS
     #include <ctype.h>
     #include <widec.h>
     #include <wctype.h>

     int iswalpha(wchar_t c);
     ...

DESCRIPTION
     These functions classify character-coded wchar_t values by
     table lookup.  Each is a predicate returning nonzero for
     true, zero for false.  The lookup table is generated by
     wchrtbl(1M).  Each of these functions operates on both ASCII
     and supplementary code sets unless otherwise indicated.

     iswalpha(c)       c is an English letter.

     iswupper(c)       c is an English upper-case letter.

     iswlower(c)       c is an English lower-case letter.

     iswdigit(c)       c is a digit [0-9].

     iswxdigit(c)      c is a hexadecimal digit [0-9], [A-F] or
                       [a-f].

     iswalnum(c)       c is an alphanumeric (letter or digit).

     iswspace(c)       c is a space character or a tab, carriage
                       return, new line, vertical tab or form-
                       feed.

     iswpunct(c)       c is a punctuation character (neither con-
                       trol nor alphanumeric).

     iswprint(c)       c is a printing character including space.

     iswgraph(c)       c is a printing character, like iswprint()
                       except false for space.

     iswcntrl(c)       c is a delete character (0177), an ordi-
                       nary control character (less than 040) or
                       other control character of a supplementary
                       code set.




                        Printed 11/19/92                   Page 1





WCTYPE(3W-SVR4)     RISC/os Reference Manual      WCTYPE(3W-SVR4)



     iswascii(c)       c is an ASCII character code less than
                       0200.

     isphonogram(c)    c is a phonogram in a supplementary code
                       set.

     isideogram(c)     c is an ideogram in a supplementary code
                       set.

     isenglish(c)      c is an English letters in a supplementary
                       code set.

     isnumber(c)       c is a digit of a supplementary code set.

     isspecial(c)      c is a special character in a supplemen-
                       tary code set.

SEE ALSO
     ctype(3C), wchrtbl(1M).




































 Page 2                 Printed 11/19/92



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026