iswupper


iswupper

Ascertains whether a given wide character is an uppercase letter

 #include <wctype.h> int iswupper ( wint_t wc  ); 

The iswupper( ) function is the wide-character version of the isupper( ) character classification function. It tests whether its character argument is a uppercase letter. If the character is a uppercase letter, isupper( ) returns a nonzero value (that is, TRue); if not, the function returns 0 (false).

Which characters are letters and which letters are uppercase both depend on the current locale setting for the category LC_CTYPE, which you can query or change using the setlocale( ) function. For some locale-specific characters, both iswupper( ) and iswlower( ) may return true, or both may return false even though iswalpha( ) returns true. However, iswupper( ) is mutually exclusive with iswcntrl( ), iswdigit( ), iswpunct( ), and iswspace( ) in all locales.

Example

See the example for iswalpha( ) in this chapter.

See Also

iswlower( ), iswalpha( ); the corresponding function for byte characters, isupper( ); the extensible wide-character classification function, iswctype( ); iswalnum( ), iswblank( ), iswcntrl( ), iswdigit( ), iswgraph( ), iswprint( ), iswpunct( ), iswspace( ), iswxdigit( ), setlocale( ); the extensible wide-character classification function, iswctype( )



C(c) In a Nutshell
C in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596006977
EAN: 2147483647
Year: 2006
Pages: 473

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net