ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::defs::base::constexpr_str_n::constexpr_str_t< char_T > 模板结构体 参考

告知其他elc库接口这是编译时常量字符串,并提供编译时计算好的内容,包括但不限于hash、bmh头、bitmark等,用于加速库操作 更多...

类 elc::defs::base::constexpr_str_n::constexpr_str_t< char_T > 继承关系图:
[图例]
elc::defs::base::constexpr_str_n::constexpr_str_t< char_T > 的协作图:
[图例]

Public 类型

typedef constexpr_str_view_t< char_Tbase_t
 
typedef char_Tstring_ptr_t
 
typedef const char_Tconst_string_ptr_t
 
- Public 类型 继承自 elc::defs::base::constexpr_str_n::constexpr_str_view_t< char_T >
typedef string_view_t< char_Tbase_t
 
typedef array_like_view_t< const char_Tbase_t
 
typedef char_Tstring_ptr_t
 
typedef const char_Tconst_string_ptr_t
 
- Public 类型 继承自 elc::defs::base::string_view_n::string_view_t< char_T >
typedef array_like_view_t< const char_Tbase_t
 
typedef char_Tstring_ptr_t
 
typedef const char_Tconst_string_ptr_t
 

Public 成员函数

constexpr constexpr_str_t (const_string_ptr_t str, size_t size)
 
constexpr constexpr_str_t (const_string_ptr_t str)
 
consteval constexpr_str_t (const constexpr_str_t &str)=default
 
constexpr hash_t hash () const noexcept
 
- Public 成员函数 继承自 elc::defs::base::constexpr_str_n::constexpr_str_view_t< char_T >
 constexpr_str_view_t (const_string_ptr_t str) noexcept=delete
 
constexpr const_string_ptr_t str () const noexcept
 
constexpr const_string_ptr_t data () const noexcept
 
constexpr operator const_string_ptr_t () const noexcept
 
constexpr constexpr_str_view_t substr (size_t pos, size_t len) const noexcept
 
constexpr constexpr_str_view_t substr (size_t pos) const noexcept
 
constexpr constexpr_str_view_t substr (size_t pos, const char_T *end) const noexcept
 
constexpr constexpr_str_view_t substr (const char_T *begin, size_t len) const noexcept
 
constexpr constexpr_str_view_t substr (const char_T *begin) const noexcept
 
constexpr constexpr_str_view_t substr (const char_T *begin, const char_T *end) const noexcept
 
- Public 成员函数 继承自 elc::defs::base::string_view_n::string_view_t< char_T >
constexpr string_view_t (const_string_ptr_t str) noexcept
 
constexpr const char_Tstr () const noexcept
 
constexpr const char_Tdata () const noexcept
 
constexpr operator const char_T * () const noexcept
 
constexpr string_view_t substr (size_t pos, size_t len) const noexcept
 
constexpr string_view_t substr (size_t pos) const noexcept
 
constexpr string_view_t substr (size_t pos, const char_T *end) const noexcept
 
constexpr string_view_t substr (const char_T *begin, size_t len) const noexcept
 
constexpr string_view_t substr (const char_T *begin) const noexcept
 
constexpr string_view_t substr (const char_T *begin, const char_T *end) const noexcept
 
constexpr bool starts_with (const char_T ch) const noexcept
 
constexpr bool starts_with (string_view_t str) const noexcept
 
constexpr bool starts_with (const char_T *str) const noexcept
 
constexpr size_t find (const char_T ch) const
 
constexpr size_t reverse_find (const char_T ch) const
 
constexpr size_t find (string_view_t str) const
 
constexpr size_t reverse_find (string_view_t str) const
 
constexpr size_t find (const constexpr_str_t< char_T > &str) const
 
constexpr size_t reverse_find (const constexpr_str_t< char_T > &str) const
 
constexpr size_t find_first_of (const char_T ch) const
 
constexpr size_t find_last_of (const char_T ch) const
 
constexpr size_t find_first_not_of (const char_T ch) const
 
constexpr size_t find_last_not_of (const char_T ch) const
 
constexpr size_t find_first_of (string_view_t str) const
 
constexpr size_t find_last_of (string_view_t str) const
 
constexpr size_t find_first_not_of (string_view_t str) const
 
constexpr size_t find_last_not_of (string_view_t str) const
 
constexpr size_t find_first_of (const constexpr_str_t< char_T > &str) const
 
constexpr size_t find_last_of (const constexpr_str_t< char_T > &str) const
 
constexpr size_t find_first_not_of (const constexpr_str_t< char_T > &str) const
 
constexpr size_t find_last_not_of (const constexpr_str_t< char_T > &str) const
 

Public 属性

hash_t hash_result
 
range_n::match_pattern< const char_Tmatch_pattern
 
range_n::reverse_match_pattern< const char_Treverse_match_pattern
 
range_n::bitmark_for_finds< const char_Tbitmark_for_finds
 
range_n::bitmark_for_quick_unindex< const char_Tbitmark_for_unindex
 
bool is_bitmark_workable
 
bool is_bitmark_for_unindex_workable =0
 

额外继承的成员函数

- 静态 Public 属性 继承自 elc::defs::base::string_view_n::string_view_t< char_T >
static constexpr size_t npos =bit::npos
 

详细描述

template<typename char_T>
struct elc::defs::base::constexpr_str_n::constexpr_str_t< char_T >

告知其他elc库接口这是编译时常量字符串,并提供编译时计算好的内容,包括但不限于hash、bmh头、bitmark等,用于加速库操作

在文件 all_defs.cpp12212 行定义.

成员类型定义说明

◆ base_t

◆ const_string_ptr_t

在文件 all_defs.cpp12215 行定义.

◆ string_ptr_t

构造及析构函数说明

◆ constexpr_str_t() [1/3]

template<typename char_T >
constexpr elc::defs::base::constexpr_str_n::constexpr_str_t< char_T >::constexpr_str_t ( const_string_ptr_t  str,
size_t  size 
)
inlineconstexpr

在文件 all_defs.cpp12223 行定义.

12223 :
12224 base_t(str, size),
12225 hash_result(defs::hash(str, size)),
12226 match_pattern(array_like_view_t<const char_T>{str, size}),
12227 reverse_match_pattern(array_like_view_t<const char_T>{str, size}){
12231 }
constexpr size_t size() const noexcept
range_n::bitmark_for_finds< const char_T > bitmark_for_finds
range_n::reverse_match_pattern< const char_T > reverse_match_pattern
range_n::bitmark_for_quick_unindex< const char_T > bitmark_for_unindex
range_n::match_pattern< const char_T > match_pattern
constexpr const_string_ptr_t str() const noexcept
constexpr bool mark(const array_like_view_t< T > &pattern) noexcept
constexpr bool mark(const array_like_view_t< T > &pattern) noexcept

◆ constexpr_str_t() [2/3]

在文件 all_defs.cpp12232 行定义.

static constexpr size_t get_length_of(T *ptr) noexcept
constexpr constexpr_str_t(const_string_ptr_t str, size_t size)

◆ constexpr_str_t() [3/3]

成员函数说明

◆ hash()

template<typename char_T >
constexpr hash_t elc::defs::base::constexpr_str_n::constexpr_str_t< char_T >::hash ( ) const
inlineconstexprnoexcept

在文件 all_defs.cpp12234 行定义.

12234{return hash_result;}

类成员变量说明

◆ bitmark_for_finds

◆ bitmark_for_unindex

◆ hash_result

◆ is_bitmark_for_unindex_workable

template<typename char_T >
bool elc::defs::base::constexpr_str_n::constexpr_str_t< char_T >::is_bitmark_for_unindex_workable =0

在文件 all_defs.cpp12222 行定义.

◆ is_bitmark_workable

在文件 all_defs.cpp12221 行定义.

◆ match_pattern

◆ reverse_match_pattern


该结构体的文档由以下文件生成: