JCL Help:StrNormIndex

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Normalizes Index and count parameter.


Pascal

 procedure StrNormIndex(const StrLen: SizeInt; var Index: SizeInt; var Count: SizeInt); overload;


Description

StrNormIndex is a auxiliary function for normalizations of Index and Count parameters transfered in string functions. Index and Count parameters are normalized as in standard Delphi function System.Delete.
Str Index Count => Index Count '12345' 2 3 2 3 '12345' 2 <0 2 0 '12345' 2 >4 2 4 '12345' <1 3 1 3 '12345' <1 <0 1 0 '12345' <1 >5 1 5 '12345' >5 Any 6 0


About

Unit

JclStrings


Donator

Alexander Radchenko


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