utf8_string:C ++的utf8字符串的简单实现

时间:2021-05-26 04:58:40
【文件属性】:
文件名称:utf8_string:C ++的utf8字符串的简单实现
文件大小:130KB
文件格式:ZIP
更新时间:2021-05-26 04:58:40
unicode utf8 utf8-string C++ UTF-8字符串 这是C ++中UTF-8字符串的简单实现。 执行 UTF8string基于标准C ++库提供的std :: string ,但已实现为支持UTF-8编码的字符串。 某些功能已针对utf8字符串进行了修改: utf8_length:获取字符串中的字符数(代码点数)。 utf8_size:获取获取字符串的内存大小(以字节为单位)。 utf8_find:在当前字符串中找到一个utf8子字符串。 utf8_substr:获取当前字符串的utf8子字符串。 utf8_at:在指定位置获取代码点。 utf8_pop:删除字符串的最后一个代码点。 用法 您只需要在项目中包含src /中的所有.hpp和.cpp文件即可。 对于每个使用UTF8string的文件,请包括以下代码: #include "utf8_string.hpp" 代码示例 UTF8string u8
【文件预览】:
utf8_string-master
----src()
--------utf8_iterator.cpp(3KB)
--------utf8_iterator.hpp(6KB)
--------utf8_string.cpp(17KB)
--------utf8_string.hpp(18KB)
----.travis.yml(456B)
----LICENSE(1KB)
----test()
--------lipsum.txt(411KB)
--------main.cpp(24KB)
----README.md(2KB)
----Makefile(1KB)
----.gitignore(326B)
----.gitlab-ci.yml(61B)

网友评论