/src/core/stdc/wctype.d

http://github.com/AlexeyProkhin/druntime · D · 44 lines · 25 code · 6 blank · 13 comment · 0 complexity · c93af28b3897a4063a8bb89941c65436 MD5 · raw file

  1. /**
  2. * D header file for C99.
  3. *
  4. * Copyright: Copyright Sean Kelly 2005 - 2009.
  5. * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
  6. * Authors: Sean Kelly
  7. * Standards: ISO/IEC 9899:1999 (E)
  8. */
  9. /* Copyright Sean Kelly 2005 - 2009.
  10. * Distributed under the Boost Software License, Version 1.0.
  11. * (See accompanying file LICENSE or copy at
  12. * http://www.boost.org/LICENSE_1_0.txt)
  13. */
  14. module core.stdc.wctype;
  15. public import core.stdc.wchar_; // for wint_t, WEOF
  16. extern (C):
  17. @trusted: // Only a couple of functions below operate on unsafe C strings.
  18. nothrow:
  19. alias wchar_t wctrans_t;
  20. alias wchar_t wctype_t;
  21. int iswalnum(wint_t wc);
  22. int iswalpha(wint_t wc);
  23. int iswblank(wint_t wc);
  24. int iswcntrl(wint_t wc);
  25. int iswdigit(wint_t wc);
  26. int iswgraph(wint_t wc);
  27. int iswlower(wint_t wc);
  28. int iswprint(wint_t wc);
  29. int iswpunct(wint_t wc);
  30. int iswspace(wint_t wc);
  31. int iswupper(wint_t wc);
  32. int iswxdigit(wint_t wc);
  33. int iswctype(wint_t wc, wctype_t desc);
  34. @system wctype_t wctype(in char* property);
  35. wint_t towlower(wint_t wc);
  36. wint_t towupper(wint_t wc);
  37. wint_t towctrans(wint_t wc, wctrans_t desc);
  38. @system wctrans_t wctrans(in char* property);