JCL Help:StrEnsureNoPrefix@AnsiString@AnsiString
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: StrEnsureNoPrefix Function
[+] JclAnsiStrings.pas Functions
Search in JCL Help
Search in all projects
Summary
Eventually removes Prefix from Text.
Pascal
function StrEnsureNoPrefix(const Prefix: string; const Text: string): string;
function StrEnsureNoPrefix(const Prefix: AnsiString; const Text: AnsiString): AnsiString;
Parameters
Parameters | Description |
const Prefix: string | The prefix to test for and apply. |
const Text: string | The string which must not have a prefix. |
Return Value
The function result is a copy of the supplied Text, eventually minus the prefix.
Description
StrEnsureNoPrefix tests whether the supplied text start with the supplied prefix. If it does then the prefix is deleted from the string otherwise the function does nothing.
See Also
StrEnsurePrefix StrEnsureNoSuffix
About
Unit
Donator
Olivier Sannier
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