fix: 修正API生成逻辑中2024库的url
[LuatOS.git] / luat / include / luat_str.h
blobe221cf61857e563873443b0a72429beaf475c7ff
2 #ifndef LUAT_STR_H
3 #define LUAT_STR_H
4 #include "string.h"
6 void luat_str_tohexwithsep(const char* str, size_t len, char* separator, size_t len_j, char* buff);
7 void luat_str_tohex(const char* str, size_t len, char* buff);
8 void luat_str_fromhex(const char* str, size_t len, char* buff);
10 int luat_str_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
11 const unsigned char *src, size_t slen );
12 int luat_str_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
13 const unsigned char *src, size_t slen );
15 int luat_str_base32_decode(const uint8_t *encoded, uint8_t *result, int bufSize);
16 int luat_str_base32_encode(const uint8_t *data, int length, uint8_t *result,int bufSize);
18 #endif