jerry_utf8.h 461 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-12-19 bernard the first version
  9. */
  10. #ifndef JERRY_UTF8_H__
  11. #define JERRY_UTF8_H__
  12. #include <stdbool.h>
  13. #ifdef __cplusplus
  14. extern "C"
  15. {
  16. #endif
  17. bool jerry_str_is_utf8(const void* str, int size);
  18. int jerry_str2utf8(char *str, int len, char **utf8);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif