Lines Matching full:std
22 const std::string SymbolTable::FIRST_LEVEL_SEPERATOR = "|";
23 const std::string SymbolTable::SECOND_LEVEL_SEPERATOR = ";";
30 …std::cerr << "Failed to read symbol table: " << symbolTable_ << ". Stop generating patch" << std::… in Initialize()
35 std::fstream fs; in Initialize()
37 std::ios_base::out | std::ios_base::trunc); in Initialize()
39 std::cerr << "Failed to create output symbol table: " << dumpSymbolTable_ << std::endl; in Initialize()
48 bool SymbolTable::ReadSymbolTable(const std::string &symbolTable) in ReadSymbolTable()
50 std::ifstream ifs; in ReadSymbolTable()
51 std::string line; in ReadSymbolTable()
54 std::cerr << "Failed to open symbol table: " << symbolTable << std::endl; in ReadSymbolTable()
58 while (std::getline(ifs, line)) { in ReadSymbolTable()
72 … info.classHash.insert(std::pair<std::string, std::string>(classItems[i], classItems[i + 1])); in ReadSymbolTable()
75 auto name = std::string(lexItems[i]); in ReadSymbolTable()
76 auto slot = std::atoi(std::string(lexItems[i + 1]).c_str()); in ReadSymbolTable()
77 auto type = std::atoi(std::string(lexItems[i + 2]).c_str()); in ReadSymbolTable()
78 info.lexenv.insert({slot, std::pair<std::string, int>(name, type)}); in ReadSymbolTable()
81 …originFunctionInfo_.insert(std::pair<std::string, OriginFunctionInfo>(info.funcInternalName, info)… in ReadSymbolTable()
85 … originModuleInfo_.insert(std::pair<std::string, std::string>(moduleItems[0], moduleItems[1])); in ReadSymbolTable()
87 std::cerr << "Failed to read symbol table: Unrecognized format" << std::endl; in ReadSymbolTable()
93 void SymbolTable::WriteSymbolTable(const std::string &content) in WriteSymbolTable()
95 std::lock_guard<std::mutex> lock(m_); in WriteSymbolTable()
96 std::fstream fs; in WriteSymbolTable()
98 std::ios_base::app | std::ios_base::in); in WriteSymbolTable()
105 std::vector<std::string_view> SymbolTable::GetStringItems(std::string_view input, const std::string… in GetStringItems()
107 std::vector<std::string_view> items; in GetStringItems()
111 while ((curPos = input.find(separator, lastPos)) != std::string_view::npos) { in GetStringItems()