|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
字符集 更多...
#include <charset.hpp>
Public 成员函数 | |
| constexpr | charset () noexcept=default |
| 默认构造函数,构造空字符集 | |
| constexpr void | insert (const char c) noexcept |
| 插入字符 | |
| constexpr void | erase (const char c) noexcept |
| 移除字符 | |
| constexpr bool | contains (const char c) const noexcept |
| 检查字符是否在集合中 | |
| constexpr bool | empty () const noexcept |
| 检查字符集是否为空 | |
| constexpr charset | operator| (const charset other) const noexcept |
| 并集 | |
| constexpr charset | operator& (const charset other) const noexcept |
| 交集 | |
| constexpr charset | operator~ () const noexcept |
| 补集 | |
| constexpr charset | operator- (const charset other) const noexcept |
| 差集 | |
| constexpr charset & | operator|= (const charset other) noexcept |
| 并集 | |
| constexpr charset & | operator&= (const charset other) noexcept |
| 交集 | |
| constexpr charset & | operator-= (const charset other) noexcept |
| 差集 | |
| constexpr bool | operator== (const charset other) const noexcept |
| 相等比较 | |
| constexpr bool | operator!= (const charset other) const noexcept |
| 不等比较 | |
静态 Public 成员函数 | |
| static constexpr charset | from_char (const char c) noexcept |
| 从单个字符构造字符集 | |
| static constexpr charset | range (const char lo, const char hi) noexcept |
| 从字符范围构造字符集 [lo, hi] | |
| static constexpr charset | empty_set () noexcept |
| 空集 | |
| static constexpr charset | universe () noexcept |
| 全集 | |
| static constexpr charset | ascii_alpha_lower () noexcept |
| ASCII 小写字母 'a'~'z' | |
| static constexpr charset | ascii_alpha_upper () noexcept |
| ASCII 大写字母 'A'~'Z' | |
| static constexpr charset | ascii_alpha () noexcept |
| ASCII 字母 'a'~'z' | 'A'~'Z' | |
| static constexpr charset | ascii_digit () noexcept |
| ASCII 数字 '0'~'9' | |
| static constexpr charset | ascii_alnum () noexcept |
| ASCII 字母与数字 | |
| static constexpr charset | ascii_hex_digit () noexcept |
| ASCII 十六进制数字 0~9, A~F, a~f | |
| static constexpr charset | ascii_blank () noexcept |
| ASCII 空白字符 | |
| static constexpr charset | ascii_space () noexcept |
| ASCII 空白字符集 | |
| static constexpr charset | ascii_punct () noexcept |
| ASCII 标点符号 | |
| static constexpr charset | ascii_cntrl () noexcept |
| ASCII 控制字符 0~31 与 127 | |
| static constexpr charset | ascii_print () noexcept |
| ASCII 可打印字符 32~126 | |
| static constexpr charset | ascii_graph () noexcept |
| ASCII 图形字符 | |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
ASCII 字母 'a'~'z' | 'A'~'Z'
在文件 charset.hpp 第 249 行定义.
引用了 ascii_alpha_lower(), ascii_alpha_upper() , 以及 charset().
被这些函数引用 ascii_alnum().
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
ASCII 十六进制数字 0~9, A~F, a~f
在文件 charset.hpp 第 269 行定义.
引用了 ascii_digit(), charset() , 以及 range().
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
ASCII 空白字符集
在文件 charset.hpp 第 287 行定义.
引用了 charset().
被这些函数引用 neforce::basic_string< char >::trim_left(), neforce::basic_string_view< typename Traits::char_type, Traits >::trim_left(), neforce::basic_string< char >::trim_right() , 以及 neforce::basic_string_view< typename Traits::char_type, Traits >::trim_right().
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
从单个字符构造字符集
| c | 字符 |
在文件 charset.hpp 第 40 行定义.
引用了 charset(), from_char() , 以及 insert().
被这些函数引用 from_char().
|
inlineconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
从字符范围构造字符集 [lo, hi]
| lo | 起始字符 |
| hi | 结束字符 |
若 lo > hi,返回空集。
在文件 charset.hpp 第 54 行定义.
引用了 charset().
被这些函数引用 ascii_alpha_lower(), ascii_alpha_upper(), ascii_digit(), ascii_hex_digit() , 以及 ascii_print().
|
inlinestaticnodiscardconstexprnoexcept |