MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
char_types.hpp 文件参考

MSTL字符类型分类和转换函数 更多...

char_types.hpp 的引用(Include)关系图:

浏览该文件的源代码.

函数

template<typename CharT>
MSTL_PURE_FUNCTION MSTL_CONSTEXPR14 bool is_ctype (const CharT c, uint64_t mask_low, uint64_t mask_high) noexcept
 通用字符类型检查函数
template<typename CharT>
MSTL_PURE_FUNCTION MSTL_CONSTEXPR14 bool is_punct (const CharT c) noexcept
 检查字符是否为标点符号
template<typename CharT>
MSTL_PURE_FUNCTION MSTL_CONSTEXPR14 bool is_cntrl (const CharT c) noexcept
 检查字符是否为控制字符
template<typename CharT>
MSTL_PURE_FUNCTION MSTL_CONSTEXPR14 bool is_print (const CharT c) noexcept
 检查字符是否为可打印字符
template<typename CharT>
MSTL_PURE_FUNCTION MSTL_CONSTEXPR14 bool is_blank (const CharT c) noexcept
 检查字符是否为空白字符
template<typename CharT>
MSTL_PURE_FUNCTION MSTL_CONSTEXPR14 bool is_graph (const CharT c) noexcept
 检查字符是否为图形字符
template<typename CharT>
MSTL_CONST_FUNCTION MSTL_CONSTEXPR14 bool is_ascii (const CharT c) noexcept
 检查字符是否为ASCII字符
template<typename CharT>
MSTL_PURE_FUNCTION MSTL_CONSTEXPR14 bool is_space (const CharT c) noexcept
 检查字符是否为空白字符
template<typename CharT>
MSTL_CONST_FUNCTION MSTL_CONSTEXPR14 bool is_alpha (const CharT c) noexcept
 检查字符是否为字母
template<typename CharT>
MSTL_CONST_FUNCTION MSTL_CONSTEXPR14 bool is_digit (const CharT c) noexcept
 检查字符是否为数字
template<typename CharT>
MSTL_CONST_FUNCTION MSTL_CONSTEXPR14 bool is_xdigit (const CharT c) noexcept
 检查字符是否为十六进制数字
template<typename CharT>
MSTL_CONST_FUNCTION MSTL_CONSTEXPR14 bool is_alpha_or_digit (const CharT c) noexcept
 检查字符是否为字母或数字
template<typename CharT>
MSTL_CONST_FUNCTION MSTL_CONSTEXPR14 bool is_digit_or_alpha (const CharT c) noexcept
 检查字符是否为数字或字母
MSTL_CONST_FUNCTION constexpr bool is_high_surrogate (const char16_t c) noexcept
 检查字符是否为高代理项
MSTL_CONST_FUNCTION constexpr bool is_low_surrogate (const char16_t c) noexcept
 检查字符是否为低代理项
MSTL_CONST_FUNCTION constexpr uint32_t combine_surrogates (const char16_t high, const char16_t low) noexcept
 组合高代理项和低代理项为完整的Unicode码点

详细描述

MSTL字符类型分类和转换函数

此文件提供了字符分类和转换函数的实现,包括ASCII字符检查、 字符类型判断、大小写转换等功能。使用位掩码技术高效实现。

在文件 char_types.hpp 中定义.