|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
UTF-8前向迭代器,遍历字符串中的Unicode码点 更多...
#include <utf_iterator.hpp>
Public 类型 | |
| using | value_type = codepoint |
| 值类型 | |
| using | reference = const codepoint& |
| 引用类型 | |
| using | pointer = const codepoint* |
| 指针类型 | |
| using | difference_type = ptrdiff_t |
| 差值类型 | |
| using | iterator_category = forward_iterator_tag |
| 迭代器类别 | |
Public 成员函数 | |
| utf8_iterator () noexcept=default | |
| 默认构造函数,构造结束迭代器 | |
| utf8_iterator (const byte_t *data, size_t remaining) noexcept | |
| 构造函数 | |
| reference | operator* () const noexcept |
| 解引用操作符 | |
| pointer | operator-> () const noexcept |
| 成员访问操作符 | |
| utf8_iterator & | operator++ () noexcept |
| 前置递增操作符 | |
| utf8_iterator | operator++ (int) noexcept |
| 后置递增操作符 | |
| bool | operator== (const utf8_iterator &other) const noexcept |
| 相等比较操作符 | |
| bool | operator!= (const utf8_iterator &other) const noexcept |
| 不等比较操作符 | |
UTF-8前向迭代器,遍历字符串中的Unicode码点
将UTF-8字节序列解码为Unicode码点流。 每次递增消耗当前码点的全部字节(1~4字节)。 无效UTF-8序列产生替换符U+FFFD。
在文件 utf_iterator.hpp 第 31 行定义.
构造函数
| data | UTF-8字节数据指针 |
| remaining | 剩余字节数 |
在文件 utf_iterator.hpp 第 67 行定义.
引用了 neforce::data() , 以及 utf8_iterator().
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |