30 lines
617 B
C++
30 lines
617 B
C++
|
|
|
|
#ifndef JT808_GBK_UTF8_H_
|
|
#define JT808_GBK_UTF8_H_
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
/*
|
|
namespace libjt808
|
|
{
|
|
#ifdef _WIN32
|
|
std::string GbkToUtf8(const char *src_str);
|
|
std::string Utf8ToGbk(const char *src_str);
|
|
#else
|
|
int GbkToUtf8(char *str_str, size_t src_len, char *dst_str, size_t dst_len);
|
|
int Utf8ToGbk(char *src_str, size_t src_len, char *dst_str, size_t dst_len);
|
|
#endif
|
|
|
|
std::string gbk_to_utf8_str(const std::vector<uint8_t> &gbk_src);
|
|
std::string gbk_to_utf8_str(const std::string &str_gbk_src);
|
|
}
|
|
s
|
|
|
|
|
|
*/
|
|
#endif // JT808_GBK_UTF8_H_
|
|
|