| 188 | |
| 189 | |
| 190 | SharedKeys::PlatformString SharedKeys::platformStringForKey(int key) const { |
| 191 | throwIf(key < 0, InvalidData, "key must be non-negative"); |
| 192 | LOCK(_mutex); |
| 193 | if ((unsigned)key >= _platformStringsByKey.size()) |
| 194 | return nullptr; |
| 195 | return _platformStringsByKey[key]; |
| 196 | } |
| 197 | |
| 198 | |
| 199 | void SharedKeys::setPlatformStringForKey(int key, SharedKeys::PlatformString platformKey) const { |