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.

common.h 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (C) 2005 to 2007 by Jonathan Duddington
  3. * email: [email protected]
  4. * Copyright (C) 2013-2015 Reece H. Dunn
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef ESPEAK_NG_COMMON_H
  20. #define ESPEAK_NG_COMMON_H
  21. #include "espeak-ng/espeak_ng.h"
  22. #include "translate.h"
  23. extern ESPEAK_NG_API int GetFileLength(const char *filename);
  24. extern ESPEAK_NG_API void strncpy0(char *to, const char *from, int size);
  25. int IsAlpha(unsigned int c);
  26. int IsBracket(int c);
  27. int IsDigit(unsigned int c);
  28. int IsDigit09(unsigned int c);
  29. int IsSpace(unsigned int c);
  30. int isspace2(unsigned int c);
  31. int is_str_totally_null(const char* str, int size); // Tests if all bytes of str up to size are null
  32. int Read4Bytes(FILE *f);
  33. int towlower2(unsigned int c, Translator *translator); // Supports Turkish I
  34. ESPEAK_NG_API int utf8_in(int *c, const char *buf);
  35. int utf8_in2(int *c, const char *buf, int backwards);
  36. int utf8_out(unsigned int c, char *buf);
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif // SPEECH_H