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

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

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

浏览该文件的源代码.

函数

template<typename CharT>
NEFORCE_PURE_FUNCTION NEFORCE_CONSTEXPR14 bool is_ctype (const CharT c, uint64_t mask_low, uint64_t mask_high) noexcept
 通用字符类型检查函数
template<typename CharT>
NEFORCE_PURE_FUNCTION NEFORCE_CONSTEXPR14 bool is_punct (const CharT c) noexcept
 检查字符是否为标点符号
template<typename CharT>
NEFORCE_PURE_FUNCTION NEFORCE_CONSTEXPR14 bool is_cntrl (const CharT c) noexcept
 检查字符是否为控制字符
template<typename CharT>
NEFORCE_PURE_FUNCTION NEFORCE_CONSTEXPR14 bool is_print (const CharT c) noexcept
 检查字符是否为可打印字符
template<typename CharT>
NEFORCE_PURE_FUNCTION NEFORCE_CONSTEXPR14 bool is_blank (const CharT c) noexcept
 检查字符是否为空白字符
template<typename CharT>
NEFORCE_PURE_FUNCTION NEFORCE_CONSTEXPR14 bool is_graph (const CharT c) noexcept
 检查字符是否为图形字符
template<typename CharT>
NEFORCE_CONST_FUNCTION NEFORCE_CONSTEXPR14 bool is_ascii (const CharT c) noexcept
 检查字符是否为ASCII字符
template<typename CharT>
NEFORCE_PURE_FUNCTION NEFORCE_CONSTEXPR14 bool is_space (const CharT c) noexcept
 检查字符是否为空白字符
template<typename CharT>
NEFORCE_CONST_FUNCTION NEFORCE_CONSTEXPR14 bool is_alpha (const CharT c) noexcept
 检查字符是否为字母
template<typename CharT>
NEFORCE_CONST_FUNCTION NEFORCE_CONSTEXPR14 bool is_digit (const CharT c) noexcept
 检查字符是否为数字
template<typename CharT>
NEFORCE_CONST_FUNCTION NEFORCE_CONSTEXPR14 bool is_xdigit (const CharT c) noexcept
 检查字符是否为十六进制数字
template<typename CharT>
NEFORCE_CONST_FUNCTION NEFORCE_CONSTEXPR14 bool is_alpha_or_digit (const CharT c) noexcept
 检查字符是否为字母或数字
template<typename CharT>
NEFORCE_CONST_FUNCTION NEFORCE_CONSTEXPR14 bool is_digit_or_alpha (const CharT c) noexcept
 检查字符是否为数字或字母

详细描述

字符类型分类和转换函数

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

在文件 char_types.hpp 中定义.