.\" ident @(#)isalnum.3 .\" Standard Template Library .\" $$RW_INSERT_HEADER "slyrs.man" .TH isalnum 3C++ "02 Apr 1998" "Rogue Wave Software" "-" .ce2 Standard C++ Library Copyright 1998, Rogue Wave Software, Inc. .SH NAME \f2isalnum\fP \ - Determines if a character is alphabetic or numeric. .SH SYNOPSIS .br #include .br template .br bool isalnum (charT c, const locale& loc) const; .SH DESCRIPTION The isalnum_function returns \f2true\fP if the character passed as a parameter is either part of the alphabet specified by the locale parameter or a decimal digit. Otherwise the function returns \f2false\fP. The check is made using the \f2ctype\fP facet from the locale parameter. .SH EXAMPLE .br // .br // isalnum.cpp .br // .br .br #include .br .br int main () .br { .RE .RS 1 using namespace std; .RE .RS 0 .RE .RS 1 locale loc; .RE .RS 2 .RE .RS 1 cout << isalnum('a',loc) << endl; .br cout << isalnum(',',loc) << endl; .RE .RS 2 .RE .RS 1 return 0; .RE .RS 0 } .SH SEE ALSO other_is_functions, locale, ctype