StringMap.SetString Method

Sets a string value in a Map, either inserting a new entry or replacing an old one.

bool SetString(const char[] key, const char[] value, bool replace)

Parameters

const char[] key

Key string.

const char[] value

String to store.

bool replace

If false, operation will fail if the key is already set.

Return Value

True on success, false on failure.