cm_utf8.h 605 B

1234567891011121314151617181920
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cm_utf8_h
  4. #define cm_utf8_h
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. /** Decode one UTF-8 character from the input byte range. On success,
  9. stores the unicode character number in *pc and returns the first
  10. position not extracted. On failure, returns 0. */
  11. const char* cm_utf8_decode_character(const char* first, const char* last,
  12. unsigned int* pc);
  13. #ifdef __cplusplus
  14. } /* extern "C" */
  15. #endif
  16. #endif