JCL Help:PWideCharOrNil

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Explicit replacement for PWideChar typecast.


Pascal

 function PWideCharOrNil(const W: WideString): PWideChar;


Parameters

Parameters Description
S The string for which to return a PWideChar.


Return Value

If the specified string is empty the funtion returns nil, otherwise it returns a pointer to the first character of the string.


Description

PWideCharOrNil returns a pointer to the first character of the specified string or nil of the string is empty. This is identical to simply typecasting to PWideChar except that this function makes the behaviour of the typecast explicit (and independent of the compiler).


See Also

PCharOrNil


About

Unit

JclSysUtils


Donator

Petr Vones


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