Template Function GenerateCText(const TCharType *, uint32_t, bool)#
Defined in File support.h
Function Documentation#
-
template<typename TCharType>
inline std::string GenerateCText(const TCharType *szText, uint32_t uiLen = 0xFFFFFFFF, bool bNotUnicode = false)# Generate an ASCII C/C++ character string from a text with zero or more characters.
- Template Parameters:
TCharType – The character type to use for the text interpretation.
- Parameters:
szText – [in] The text to translate into C/C++ style text (inserting escape characters if necessary).
uiLen – [in] The length of the text or 0xFFFFFFFF when to use a zero terminated string.
bNotUnicode – [in] When set, the encoding is ASCII. Only valid with ‘char’ data type.
- Returns:
std::string