JCL Help:StrLength@AnsiString

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the length of the supplied string.


Pascal

 function StrLength(const S: string): SizeInt;
function StrLength(const S: AnsiString): Longint;


Parameters

Parameters Description
const S: string The string for which to determine the length.


Return Value

The length of the string in characters.


Description

StrLength returns the length of the supplied string. This is a duplication of the standard Delphi Length function and is only supplied for completeness. You should prefer the Length function over StrLength.


See Also

StrAllocSize StrRefCount


About

Unit

JclAnsiStrings


Donator

Marcel van Brakel


Notes

This function relies on pseudo undocumented knowledge.


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