Template Function sdv::MakeAnsiString(const string_base<TCharType, bUnicode, nFixedSize>&, char)#

Function Documentation#

template<typename TCharType, bool bUnicode, size_t nFixedSize>
string sdv::MakeAnsiString(const string_base<TCharType, bUnicode, nFixedSize> &rss, 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:
  • bUnicode – When set, the string is a unicode string.

  • TCharType – The character type to use for the strings.

  • nFixedSize – Size of the fixed size buffer or 0 for a dynamic sized buffer.

Parameters:
  • rss[in] Reference to the string.

  • 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.