eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

android_wchar.h 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Wide-Character Locale Compatibility API for Android.
  2. *
  3. * Copyright (C) 2012 Reece H. Dunn
  4. *
  5. * This file is part of espeak.
  6. *
  7. * espeak is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * espeak is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with espeak. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #ifndef ANDROID_WCHAR_H
  21. #define ANDROID_WCHAR_H
  22. #include <stdint.h>
  23. #include <wchar.h>
  24. #include <wctype.h>
  25. #ifdef ANDROID
  26. #include "ucd/ucd.h"
  27. #define iswalpha(c) ucd::isalpha(c)
  28. #define iswalnum(c) ucd::isalnum(c)
  29. #define iswdigit(c) ucd::isdigit(c)
  30. #define iswlower(c) ucd::islower(c)
  31. #define iswspace(c) ucd::isspace(c)
  32. #define iswupper(c) ucd::isupper(c)
  33. #define towlower(c) ucd::tolower(c)
  34. #define towupper(c) ucd::toupper(c)
  35. #endif
  36. #endif