examples/cctye: change std::isascii to isascii
since isascii isn't a standard defined function and then may not exist in all cctype header file(e.g. libc++): cctype_main.cxx: In function 'int cctype_main(int, char**)': cctype_main.cxx:64:45: error: 'isascii' is not a member of 'std'; did you mean 'isascii'? 64 | std::isspace(i), std::isascii(i), std::isprint(i), std::isgraph(i), | ^~~~~~~ Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I8c4fd5ccf120ae5a1566cd4d90695e47ffc30cad
This commit is contained in:
parent
72d9b34fb1
commit
0eac035245
@ -61,7 +61,7 @@ extern "C"
|
||||
int lower = std::tolower(i);
|
||||
std::printf("%3d %c %d %d %d %d %d %d %d %d %d %d %d %d %d %c %c\n",
|
||||
i, std::isprint(i) ? i : '.',
|
||||
std::isspace(i), std::isascii(i), std::isprint(i), std::isgraph(i),
|
||||
std::isspace(i), isascii(i) , std::isprint(i), std::isgraph(i),
|
||||
std::iscntrl(i), std::islower(i), std::isupper(i), std::isalpha(i),
|
||||
std::isblank(i), std::isdigit(i), std::isalnum(i), std::ispunct(i),
|
||||
std::isxdigit(i),
|
||||
|
Loading…
Reference in New Issue
Block a user