Template Function sdv::MakeAnsiString(const TCharType *, size_t, char)#
Defined in File string.h
Function Documentation#
-
template<typename TCharType>
string sdv::MakeAnsiString(const TCharType *sz, size_t nCount = string::npos, char cFill = '_')# Create an ANSI (ISO/IEC 8859-1) string by providing strings of other types.
Remark
An automatic conversion from UTF-8 to ANSI is not possible (since both use the “char” data type).
- Template Parameters:
TCharType – The character type to use for the strings.
- Parameters:
sz – [in] Pointer to a string.
nCount – [in] The amount of characters in the string or ‘npos’ when the string is zero terminated.
cFill – [in] The filling character to add when a Unicode character was detected that was not fitting the ANSI character set.
- Returns:
Returns the created string.