MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / getString

Method getString

KittyMemoryEx/KittyMemoryEx.hpp:223–227  ·  view source on GitHub ↗

* @brief Retrieves the string value associated with a key. * * @param key The key to retrieve. * @return The string value associated with the key, or an empty string if the key is not found. */

Source from the content-addressed store, hash-verified

221 * @return The string value associated with the key, or an empty string if the key is not found.
222 */
223 inline std::string getString(const std::string &key) const
224 {
225 auto it = data.find(key);
226 return (it != data.end()) ? it->second : "";
227 }
228
229 /**
230 * @brief Retrieves the integer value associated with a key.

Callers

nothing calls this directly

Calls 1

endMethod · 0.80

Tested by

no test coverage detected