JCL Help:StrSplit@AnsiString@AnsiString@AnsiString@AnsiString

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns left and right portions of the string split with the specified sub-string.

Pascal

 function StrSplit(const SubStr: AnsiString; const S: AnsiString; var Left: AnsiString; var Right: AnsiString): boolean;


Parameters

Parameters Description
const SubStr: AnsiString The sub-string to search for.
const S: AnsiString The source string.
var Left: AnsiString The left part before the sub-string.
var Right: AnsiString The right part after the sub-string.


Return Value

Returns True if the sub-string is found, otherwise it returns False.


Description

StrSplit expects that SubStr divides the source string into two parts: Left and Right. SubStr as such is not a part of returned strings Left nor Right. If SubStr not found then function returns False and Left and Right are empty strings.


About

Unit

JclAnsiStrings


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