MCPcopy Create free account
hub / github.com/SmingHub/Sming / fromFileExtension

Function fromFileExtension

Sming/Core/Data/WebConstants.h:90–93  ·  view source on GitHub ↗

@brief Obtain content type string from file extension * @param extension * @retval String */

Source from the content-addressed store, hash-verified

88 * @retval String
89 */
90inline String fromFileExtension(const String& extension)
91{
92 return fromFileExtension(extension.c_str());
93}
94
95/** @brief Get enumerated value for a MIME type string
96 * @param str

Callers 1

testWebConstantsFunction · 0.50

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected