MKI_CopyPartW (Strings) Changed in Version 2019.1

www.CAD6.com

C++ Syntax

void

MKI_CopyPartW(

 LPWSTR f_pszDestin,

 const size_t f_unMaxSize,

 LPCWSTR f_pszSource1,

 const size_t f_unCharCount );

 

 template <size_t f_unSize> void

 MKI_CopyPartW(

         wchar_t (&f_rDestin)[f_unSize],

         LPCWSTR f_pszSource1,

         const size_t f_unCharCount );

 

Copies a part of one Unicode text to another Unicode text.

 

Parameters

Destin

[LPWSTR] Address of the destination text.

MaxSize

[const size_t] Maximum allowed length of the destination text in UTF-16 characters including the terminating '\0' character.

Source1

[LPCWSTR] Address of the source text.

CharCount

[const size_t] Maximum number of Unicode characters to be copied. A terminating '\0' character will also stop the copying.

 

Comment

It is guaranteed that the resulting text will always be terminated with a '\0' character!

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH