🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
Encode.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include <string>
25
26
27AST_NAMESPACE_BEGIN
28
29
30
43AST_UTIL_CAPI errc_t aAnsiToWide(const char* ansi, std::wstring& wide);
44
45
52AST_UTIL_CAPI errc_t aUtf8ToWide(const char* utf8, std::wstring& wide);
53
59AST_UTIL_CAPI errc_t aWideToAnsi(const wchar_t* wide, std::string& ansi);
60
66AST_UTIL_CAPI errc_t aWideToUtf8(const wchar_t* wide, std::string& utf8);
67
68
69
72AST_NAMESPACE_END
73
74
75
76
AST_UTIL_CAPI errc_t aUtf8ToWide(const char *utf8, std::wstring &wide)
将UTF-8编码的字符串转换为宽字符编码
AST_UTIL_CAPI errc_t aWideToAnsi(const wchar_t *wide, std::string &ansi)
将宽字符编码的字符串转换为ANSI编码
AST_UTIL_CAPI errc_t aWideToUtf8(const wchar_t *wide, std::string &utf8)
将宽字符编码的字符串转换为UTF-8编码
AST_UTIL_CAPI errc_t aAnsiToWide(const char *ansi, std::wstring &wide)
将ANSI编码的字符串转换为宽字符编码