ctype.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // -*- C++ -*-
  2. //===---------------------------- ctype.h ---------------------------------===//
  3. //
  4. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  5. // See https://llvm.org/LICENSE.txt for license information.
  6. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #ifndef _LIBCPP_CTYPE_H
  10. #define _LIBCPP_CTYPE_H
  11. /*
  12. ctype.h synopsis
  13. int isalnum(int c);
  14. int isalpha(int c);
  15. int isblank(int c); // C99
  16. int iscntrl(int c);
  17. int isdigit(int c);
  18. int isgraph(int c);
  19. int islower(int c);
  20. int isprint(int c);
  21. int ispunct(int c);
  22. int isspace(int c);
  23. int isupper(int c);
  24. int isxdigit(int c);
  25. int tolower(int c);
  26. int toupper(int c);
  27. */
  28. #include <__config>
  29. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  30. #pragma GCC system_header
  31. #endif
  32. #include_next <ctype.h>
  33. #ifdef __cplusplus
  34. #undef isalnum
  35. #undef isalpha
  36. #undef isblank
  37. #undef iscntrl
  38. #undef isdigit
  39. #undef isgraph
  40. #undef islower
  41. #undef isprint
  42. #undef ispunct
  43. #undef isspace
  44. #undef isupper
  45. #undef isxdigit
  46. #undef tolower
  47. #undef toupper
  48. #endif
  49. #endif // _LIBCPP_CTYPE_H