JCL Help:StrMove@AnsiString@AnsiString@SizeInt@SizeInt@SizeInt

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Copies a sub-string from one string to another.


Pascal

 procedure StrMove(var Dest: string; const Source: string; const ToIndex: SizeInt; const FromIndex: SizeInt; const Count: SizeInt);
procedure StrMove(var Dest: AnsiString; const Source: AnsiString; const ToIndex: SizeInt; const FromIndex: SizeInt; const Count: SizeInt);


Parameters

Parameters Description
var Dest: string The destination string which the sub-string is copied to.
const Source: string The source string from which the sub-string is copied.
const ToIndex: SizeInt The index into the destination string at which the sub-string is copied.
const FromIndex: SizeInt The starting index into the source string from which count characters are copied.
const Count: SizeInt Length of the sub-string to copy in characters.


Description

StrMove copies Count characters starting at FromIndex in the source string to the destination string starting at ToIndex. The function checks the passed parameters and if any is illegal the function does nothing. This includes illegal indices and, for example, a zero-length destination string.


About

Unit

JclAnsiStrings


Donator

Azret Botash


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