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