Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ isalnum(3C++) — Sun WorkShop 5.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

isalnum(3C++)

Standard C++ Library
Copyright 1998, Rogue Wave Software, Inc.

 

NAME

 
isalnum
 
 - Determines if a character is alphabetic or numeric.
 
 
 

SYNOPSIS

 
 
#include <locale>
template <class charT>
bool isalnum (charT c, const locale& loc) const;
 
 
 

DESCRIPTION

 
 
The isalnum_function returns true 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 false.   The check is made using the ctype facet from the locale parameter. 
 
 
 

EXAMPLE

 
 
 
//
// isalnum.cpp
//
 
#include <iostream>
 
int main ()
{

using namespace std;

 

locale loc;

 

cout << isalnum(’a’,loc) << endl;
cout << isalnum(’,’,loc) << endl;

 

return 0;

}
 
 
 

SEE ALSO

 
 
other_is_functions, locale, ctype
 

Rogue Wave Software  —  Last change: 02 Apr 1998

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026