Replace <ctype.h> with <cctype> in OpenCV Codebase

Many OpenCV files use the C standard header <ctype.h> for functions like “isdigit”, “isalpha”, and “toupper”.

I suggest we can replace <ctype.h> with the C++ header “cctype”.

Benefits:

  • Functions will be in the std namespace, reducing conflicts.
  • Aligns with modern C++ standards.
  • Ensures consistent use of C++specific headers.

Feedback Requested:
Should we switch to “cctype”?
Are there any potential challenges?