JCL Help:StrTrimCharLeft@AnsiString@AnsiChar

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Removes leading characters from a string.


Pascal

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


Parameters

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


Return Value

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


Description

The StrTrimCharLeft routine removes leading characters from the specified string. For example, StrTrimCharLeft('000123', '0') returns '123'.


See Also

StrTrimCharRight


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