예제 #1
0
int
main (int argc, char* argv[])
{
#if __FUNCTION__ != main
# error your compiler system does not define __FUNCTION__.
#endif
	/* Avoid NLS nuisances.  */
	(void) setlocale (LC_ALL, "POSIX");
	
	test_isalnum_macro ();
	test_isalpha_macro ();
	test_isascii_macro ();
	test_iscntrl_macro ();
	test_isdigit_macro ();
	test_isgraph_macro ();
	test_isprint_macro ();
	test_ispunct_macro ();
	test_isspace_macro ();
	test_isupper_macro ();
	test_isxdigit_macro ();
	test_isblank_macro ();
	
	test_isalnum ();
	test_isalpha ();
	test_isascii ();
	test_iscntrl ();
	test_isdigit ();
	test_isgraph ();
	test_isprint ();
	test_ispunct ();
	test_isspace ();
	test_isupper ();
	test_isxdigit ();
	test_isblank ();
	
	test_toascii_macro ();
	test__toupper_macro ();
	test__tolower_macro ();
	
	test_toascii ();
	test__toupper ();
	test__tolower ();

#ifdef __MINT__	
	test_toint_macro ();
	test_isodigit_macro ();
	test_iscymf_macro ();
	test_iscym_macro ();
#endif
	
	test_toupper ();
	test_tolower ();
	
	return 0;
}
예제 #2
0
파일: cctype.cpp 프로젝트: geolffrey/cpp14
int main()
{
    test_isalnum();
    test_isalpha();
    test_islower();
    test_isupper();
    test_iscntrl();
    test_isgraph();
    test_isprint();
    test_ispunct();
    test_tolower();
    test_toupper();
    return 0;
}