Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) std::isalpha

 

std::isalpha is a function to test if the given character is in the locale's alphabet.

 

 

#include <cassert>
#include <cctype>

int main ()
{
  assert( std::isalpha('a'));
  assert( std::isalpha('z'));
  assert( std::isalpha('A'));
  assert( std::isalpha('Z'));
  assert(!std::isalpha(' '));
  assert(!std::isalpha('\n'));
  assert(!std::isalpha('\t'));
}

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml