字符串相关
更多...
#include <array>
#include <string>
#include <system_error>
#include <fmt/format.h>
#include "memory/dl_code_cvt.h"
#include "dl_range.h"
#include "dl_algorithm.h"
#include "io/dl_log.h"
#include "base/dl_type_def.h"
浏览源代码.
字符串相关
- 版本
- 1.0
- 作者
- lveyou
- 日期
- 23-06-23
- 注解
- vs设置多字节编码,并且定义utf-8
-
字节流请优先使用Buffer类
-
string的size和length相同。我们需要保证结尾不包含0的
-
现在字符串统一使用基于string的 utf-8编码,在需要对字符拆分处理时再转换到utf-32编码
-
wstring_convert在C++17已经弃用,使用iconv来转换编码,在CodeCvt文件
-
to_string进行基本类型转换,toString作为复杂类型转换,format多个变量时使用
-
format非编译期时使用:vformat(fmt, std::make_format_args(v));
在文件 dl_string.h 中定义.