D Programming Language 2.0

- Comments
- D
- Search
- Home

Last update Sun Jun 13 09:38:34 2010

# std.ctype

Simple ASCII character classification functions. For Unicode classification, see std.uni.

References:
ASCII Table, Wikipedia

License:
Boost License 1.0.

Authors:
Walter Bright

Copyright Digital Mars 2000 - 2009. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at ) http:
//www.boost.org/LICENSE_1_0.txt

int isalnum(dchar c);
  Returns !=0 if c is a letter in the range (0..9, a..z, A..Z).

int isalpha(dchar c);
  Returns !=0 if c is an ascii upper or lower case letter.

int iscntrl(dchar c);
  Returns !=0 if c is a control character.

int isdigit(dchar c);
  Returns !=0 if c is a digit.

int islower(dchar c);
  Returns !=0 if c is lower case ascii letter.

int ispunct(dchar c);
  Returns !=0 if c is a punctuation character.

int isspace(dchar c);
  Returns !=0 if c is a space, tab, vertical tab, form feed, carriage return, or linefeed.

int isupper(dchar c);
  Returns !=0 if c is an upper case ascii character.

int isxdigit(dchar c);
  Returns !=0 if c is a hex digit (0..9, a..f, A..F).

int isgraph(dchar c);
  Returns !=0 if c is a printing character except for the space character.

int isprint(dchar c);
  Returns !=0 if c is a printing character including the space character.

int isascii(dchar c);
  Returns !=0 if c is in the ascii character set, i.e. in the range 0..0x7F.

dchar tolower(dchar c);
  If c is an upper case ascii character, return the lower case equivalent, otherwise return c.

dchar toupper(dchar c);
  If c is a lower case ascii character, return the upper case equivalent, otherwise return c.

Copyright Digital Mars 2000 - 2009. | Page generated by Ddoc.