code_names.h
来自「a little DFA compiler.」· C头文件 代码 · 共 34 行
H
34 行
/* $Id: token.h 547 2006-05-25 13:40:35Z helly $ */#ifndef _code_names_h#define _code_names_h#include <string>#include <map>namespace re2c{class CodeNames: public std::map<std::string, std::string>{public: std::string& operator [] (const char * what);};inline std::string& CodeNames::operator [] (const char * what){ CodeNames::iterator it = find(std::string(what)); if (it != end()) { return it->second; } else { return insert(std::make_pair(std::string(what), std::string(what))).first->second; }}} // end namespace re2c#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?