tool_encoding.h 473 B

123456789101112131415161718192021222324252627
  1. #ifndef AFUN_TOOL_ENCODING_H
  2. #define AFUN_TOOL_ENCODING_H
  3. #include "aFunToolExport.h"
  4. #include "tool_macro.h"
  5. #ifdef __cplusplus
  6. #include <iostream>
  7. #else
  8. #include <stdio.h>
  9. #endif
  10. #ifndef AFUN_TOOL_C
  11. namespace aFuntool {
  12. #endif
  13. AFUN_TOOL_C_EXPORT_FUNC bool isCharUTF8(const char *str);
  14. #ifdef __cplusplus
  15. AFUN_INLINE bool isCharUTF8(const std::string &str);
  16. #endif
  17. #ifndef AFUN_TOOL_C
  18. }
  19. #endif
  20. #include "tool_encoding.inline.h"
  21. #endif //AFUN_TOOL_ENCODING_H