D Programming Language 2.0

- Comments
- D
- Search
- Home

Last update Sun Jul 10 10:47:20 2011

# std.ctype

Scheduled for deprecation in January 2012. Please use std.ascii instead.

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

References:
ASCII Table, Wikipedia

License:
Boost License 1.0.

Authors:
Walter Bright and Jonathan M Davis

Source:
std/ctype.d

pure int isalnum(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.isAlphaNum instead.

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

pure int isalpha(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.isAlpha instead.

  Returns !=0 if c is an ascii upper or lower case letter.

pure int iscntrl(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ctype.ascii.isControl instead.

  Returns !=0 if c is a control character.

pure int isdigit(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.isDigit instead.

  Returns !=0 if c is a digit.

pure int islower(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.isLower instead.

  Returns !=0 if c is lower case ascii letter.

pure int ispunct(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.isPunctuation instead.

  Returns !=0 if c is a punctuation character.

pure int isspace(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.isWhite instead.

  Returns !=0 if c is a space, tab, vertical tab, form feed, carriage return, or linefeed.

pure int isupper(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.isUpper instead.

  Returns !=0 if c is an upper case ascii character.

pure int isxdigit(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.isHexDigit instead.

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

pure int isgraph(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.isGraphical instead.

  Returns !=0 if c is a printing character except for the space character.

pure int isprint(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.isPrintable instead.

  Returns !=0 if c is a printing character including the space character.

pure int isascii(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.isASCII instead.

  Returns !=0 if c is in the ascii character set, i.e. in the range 0..0x7F.

pure dchar tolower(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.toLower instead.

  If c is an upper case ascii character, return the lower case equivalent, otherwise return c.

pure dchar toupper(dchar c);
  Scheduled for deprecation in January 2012. Please use std.ascii.toUpper instead.

  If c is a lower case ascii character, return the upper case equivalent, otherwise return c.

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