ltrim()
Description
This function calls isspace()
or else compares with the
contents of sCharlist
for each character from the
left of the string until it reaches a character that is not considered to
be a space (space and tab) and then returns the remaining string. The
return value is a string with all leading spaces and tab characters
removed up until the first character that is not one of those two. If the
optional sCharlist
parameter is passed, then the
characters that comprise the sCharlist
will be
used instead of the isspace()
function to decide
whether a character should be trimmed.
Prototype
ltrim
(
string
,
string sString
)
sCharlist
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
sString | None | string | |
sCharlist | None | string |