chsvlib
chsv helper source code

◆ vPrintf()

int Chusov::String::vPrintf ( const CHAR_TYPE *restrict  pszFormat,
va_list  ap 
)
noexcept

Resolves to vPrintfA or to vPrintfW depending on the template parameter.

Template Parameters
CHAR_TYPEis a template parameter specifying a type of strings the template specialization is to work with. That is CHAR_TYPE=char for multibyte strings in the current locale or CHAR_TYPE=wchar_t for wide strings. The corresponding functions, wrapped over by the template specializations, are vPrintfA and vPrintfW.
Parameters
[in]pszFormatis a pointer to a zero terminated string defining how to interpret data, passed as additional parameters, during the construction of the output.
[in]apis a variable argument list containing data used to construct an output string according to the format.
Returns
On success the function returns a number of characters of the output not counting the terminating zero. If an error occurs the function returns a negative value.

See vPrintfA and vPrintfW for the details.