1
0

tool_str.h 546 B

123456789101112131415161718192021222324252627
  1. #ifndef AFUN_TOOL_STR_H
  2. #define AFUN_TOOL_STR_H
  3. #include "aFunToolExport.h"
  4. #ifdef __cplusplus
  5. #include <cwchar>
  6. #include <cstring>
  7. #else
  8. #include <wchar.h>
  9. #include <string.h>
  10. #endif
  11. /* 字符串工具 */
  12. #ifndef AFUN_TOOL_C
  13. namespace aFuntool {
  14. #endif
  15. AFUN_TOOL_C_EXPORT_FUNC char *charToStr(char ch);
  16. AFUN_TOOL_C_EXPORT_FUNC char *strCopy(const char *str);
  17. AFUN_TOOL_C_EXPORT_FUNC char *strJoin(const char *first, const char *second, bool free_first, bool free_last);
  18. #ifndef AFUN_TOOL_C
  19. }
  20. #endif
  21. #endif //AFUN_TOOL_STR_H