What's the easiest way to tell if a wchar_t is alphanumeric?

What's the easiest way to tell if a wchar_t is alphanumeric?

1
2
3
4
5
6
7
8
unsigned int dwLength = wcslen( str );
	
for( unsigned int i = 0; i < dwLength; i++ )
{
	wchar_t cChar = str->GetAt( i );
	
	// what now?? any suggestions?
}


thanks
looks like ::isalpha( ) is a good start

http://www.cplusplus.com/reference/clibrary/cctype/isalpha/
The suitable functions are std::iswalnum() from <cwtype> or std::isalnum() from <locale>
Last edited on
Topic archived. No new replies allowed.