🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::Identifier类 参考

#include <Identifier.hpp>

Public 成员函数

const char * data () const
 
char * data ()
 
uint32_t length () const
 
const char * c_str () const
 
std::string toString () const
 
bool equals (const char *str, size_t len) const
 
bool equals (const char *str) const
 
bool equals (const std::string &str) const
 
bool equals (StringView sv) const
 
size_t hash () const
 
bool starts_with (const char *prefix) const
 
bool starts_with (const std::string &prefix) const
 
bool ends_with (const char *suffix) const
 
bool ends_with (const std::string &suffix) const
 

静态 Public 成员函数

static size_t hash (const char *data, size_t len)
 

友元

class IdentifierTable
 

详细描述

标识符类

标识符类表示一个字符串,用于存储和操作标识符。 标识符类是不可复制和赋值的,只能通过IdentifierTable创建。 相同名称的标识符的内存地址是相同的。


该类的文档由以下文件生成: