JCL Help:StrNewW@PWideChar

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Duplicates a wide character string.


Pascal

 function StrNewW(const Str: PWideChar): PWideChar; overload;
function StrNewW(const Str: WideString): PWideChar; overload;


Parameters

Parameters Description
const Str: PWideChar The string to duplicate (copy).


Return Value

Pointer to the first character of the duplicated string.


Description

StrNewW makes a copy of the specified string, if not nil, and returns a pointer to the duplicated string. The function makes an actual copy of the string not just the pointer. When you are done using the string you must deallocate the memory by using StrDisposeW. Do not simply pass it to FreeMem.


About

Unit

JclWideStrings


Donator

Mike Lischke


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page