Template Function cras::quoteIfStringType
Defined in File string_utils.hpp
Function Documentation
-
template<typename T, ::std::enable_if_t<!::cras::is_string<::std::decay_t<T>>::value, bool> = true>
inline ::std::string cras::quoteIfStringType(const ::std::string &s, const T&) Put
sin double quotes ifTis a string type (std::string or char*).- Template Parameters:
T – The type to check.
- Parameters:
s – [in] The input string.
- Returns:
Either
sin double quotes ifTis a string type, or justs.