MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / FindString

Method FindString

src/plugin/kernel/src/AFCTable.cpp:235–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235uint32_t AFCTable::FindString(const uint32_t index, const std::string& value) const
236{
237 for (auto iter : data_)
238 {
239 auto pRowData = iter.second;
240 ARK_ASSERT_RET_VAL(pRowData != nullptr, 0u);
241
242 if (pRowData->GetString(index) == value)
243 {
244 return iter.first;
245 }
246 }
247
248 return 0u;
249}
250
251uint32_t AFCTable::FindWString(const uint32_t index, const std::wstring& value) const
252{

Callers

nothing calls this directly

Calls 1

GetStringMethod · 0.45

Tested by

no test coverage detected