Utils/VrUtils/Inc/VrCodeFormatUtils.h
杰仔 9bcdc61c5a 初始提交:Utils 工具库模块
包含以下子模块:
- VrCommon: 核心接口和数据结构
- VrUtils: 工具类库(JSON、log4cpp、tinyxml2、INI、MD5、CRC)
- CloudUtils: 点云工具
- DataUtils: 数据处理工具(CloudMathClac、CoordinateTransform)
- CloudView: 点云查看工具

功能说明:
- 提供项目通用的基础工具类和实用功能
- 支持 Windows (MSVC/MinGW) 和 Linux (ARM/x86_64) 平台
- 使用 Qt qmake 构建系统
- 所有模块编译为静态库
2026-02-18 16:00:16 +08:00

26 lines
632 B
C++

#pragma once
namespace CVrCodeFormatUtils
{
//GB2312到UTF-8的转换
int GB2312ToUtf8(const char* gb2312, char* utf8);
//判断是否是utf8
bool IsTextUTF8(const char* str, long length);
//UTF-8到GB2312的转换
int Utf8ToGB2312(const char* utf8, char* gb2312);
//GB2312到Unicode的转换
int GB2312ToUnicode(const char* gb2312, char* unicode);
//Unicode到GB2312的转换
int UnicodeToGB2312(const char* unicode, int size, char*gb2312);
//UTF-8到Unicode的转换
int Utf8ToUnicode(const char* utf8, char*unicode);
//Unicode到UTF-8的转换
int UnicodeToUtf8(const char* unicode, int size, char* utf8);
}