------------------------------- HashStringRegistry::GetString Access the string value associated with a hash
| 83 | // Access the string value associated with a hash |
| 84 | // |
| 85 | char const* HashStringRegistry::GetString(T_Hash const hash) const |
| 86 | { |
| 87 | if (hash == 0u) |
| 88 | { |
| 89 | return nullptr; |
| 90 | } |
| 91 | |
| 92 | auto const foundIt = m_RegisteredHashes.find(hash); |
| 93 | |
| 94 | if (foundIt != m_RegisteredHashes.cend()) |
| 95 | { |
| 96 | return foundIt->second.c_str(); |
| 97 | } |
| 98 | |
| 99 | return nullptr; |
| 100 | } |
| 101 | |
| 102 | |
| 103 | } // namespace core |