JCL Help:StrTrimCharRight@AnsiString@AnsiChar

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Removes trailing characters from a string.


Pascal

 function StrTrimCharRight(const S: string; C: Char): string;
function StrTrimCharRight(const S: AnsiString; C: AnsiChar): AnsiString;


Parameters

Parameters Description
const S: string The source string from which the trailing characters need to be removed.
C: Char The character to remove.


Return Value

The function returns the source string S without any trailing characters C.


Description

The StrTrimCharRight routine removes trailing characters from the specified string. For example, StrTrimCharRight('123000', '0') returns '123'.


See Also

StrTrimCharLeft


About

Unit

JclAnsiStrings


Donator

Jack N.A. Bakker


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