|
| static NEFORCE_NODISCARD constexpr int | compare (const char_type *lhs, const char_type *rhs, const size_t n) noexcept |
| | 比较两个字符序列(内存优化版本)
|
| static NEFORCE_NODISCARD constexpr const char_type * | find (const char_type *str, const size_t n, const char_type chr) noexcept |
| | 在字符序列中查找指定字符(内存优化版本)
|
| static constexpr char_type * | assign (char_type *str, size_t n, const char_type chr) noexcept |
| | 将字符序列中的每个字符设置为指定值(内存优化版本)
|
| static constexpr void | assign (char_type &lhs, const char_type &rhs) noexcept |
| | 赋值单个字符
|
| static constexpr char_type * | copy (char_type *dest, const char_type *srcs, const size_t count) noexcept |
| | 复制字符序列
|
| static NEFORCE_NODISCARD constexpr int_type | eof () noexcept |
| | 返回EOF值
|
| static NEFORCE_NODISCARD constexpr bool | eq (const char_type lhs, const char_type rhs) noexcept |
| | 相等比较
|
| static NEFORCE_NODISCARD constexpr size_t | length (const char_type *str) noexcept |
| | 计算字符串长度
|
| static NEFORCE_NODISCARD constexpr bool | lt (const char_type lhs, const char_type rhs) noexcept |
| | 小于比较
|
| static constexpr char_type * | move (char_type *dest, const char_type *srcs, const size_t count) noexcept |
| | 移动字符序列
|
| static NEFORCE_NODISCARD constexpr int_type | not_eof (const int_type rsc) noexcept |
| | 如果不是EOF则返回原值,否则返回0
|
template<typename CharT, typename IntT>
struct narrow_char_traits< CharT, IntT >
窄字符特征模板
- 模板参数
-
为窄字符类型提供优化的内存操作实现。
在文件 char_traits.hpp 第 154 行定义.