Improve this page Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone. Page wiki View or edit the community-maintained wiki page associated with this page.

std.ctype

Deprecated. It will be removed in March 2013. 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

deprecated pure int isalnum(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.isAlphaNum instead.

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

deprecated pure int isalpha(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.isAlpha instead.

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

deprecated pure int iscntrl(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ctype.ascii.isControl instead.

Returns !=0 if c is a control character.

deprecated pure int isdigit(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.isDigit instead.

Returns !=0 if c is a digit.

deprecated pure int islower(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.isLower instead.

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

deprecated pure int ispunct(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.isPunctuation instead.

Returns !=0 if c is a punctuation character.

deprecated pure int isspace(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.isWhite instead.

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

deprecated pure int isupper(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.isUpper instead.

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

deprecated pure int isxdigit(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.isHexDigit instead.

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

deprecated pure int isgraph(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.isGraphical instead.

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

deprecated pure int isprint(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.isPrintable instead.

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

deprecated pure int isascii(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.isASCII instead.

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

deprecated pure dchar tolower(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.toLower instead.

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

deprecated pure dchar toupper(dchar c);
Deprecated. It will be removed in March 2013. Please use std.ascii.toUpper instead.

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