carb::crashreporter::detail::sanitizeExtraCrashFileKey

Defined in carb/crashreporter/CrashReporterUtils.h

inline std::string carb::crashreporter::detail::sanitizeExtraCrashFileKey(const char *keyName)

Sanitizes a string to be usable as a key name in the settings registry.

Note

This is called internally by the addExtraCrashFile() and isExtraCrashFileKeyUsed() functions and should not be called directly.

Parameters

keyName[in] The key string to be sanitized. This may be any string in theory, but should really be a short descriptive name for a crash metadata value or extra crash file. All non-ASCII, non-numeric characters will be replaced with underscores.

Returns

A string containing the sanitized key name.