| 585 | } |
| 586 | |
| 587 | int 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 | |
| 598 | void BlCodeView::WriteStringTable(const StringImpl&strTab, std::unordered_map<String, int>& strTabMap) |
| 599 | { |
no test coverage detected