MCPcopy Create free account
hub / github.com/beefytech/Beef / AddToStringTable

Method AddToStringTable

IDEHelper/Linker/BlCodeView.cpp:587–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587int BlCodeView::AddToStringTable(const StringImpl&str)
588{
589 auto pairVal = mStrTabMap.insert(std::make_pair(str, -1));
590 if (pairVal.second)
591 {
592 pairVal.first->second = (int)mStrTab.length();
593 mStrTab.Append(str.c_str(), str.length());
594 }
595 return pairVal.first->second;
596}
597
598void BlCodeView::WriteStringTable(const StringImpl&strTab, std::unordered_map<String, int>& strTabMap)
599{

Callers 1

ParseSymbolDataMethod · 0.80

Calls 3

AppendMethod · 0.80
lengthMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected