vl-string-left-trim

AutoCad AutoLISP Functions

 
vl-string-left-trim
 
 
 

Removes the specified characters from the beginning of a string

(vl-string-left-trim character-set string)

Arguments

character-set

A string listing the characters to be removed.

string

The string to be stripped of character-set.

Return Values

A string containing a substring of string with all leading characters in character-set removed

Examples

_$ (vl-string-left-trim "
\t\n" "\n\t STR ")
"STR "
_$ (vl-string-left-trim "12456789"
"12463CPO is not R2D2")
"3CPO is not R2D2"
_$ (vl-string-left-trim "
" "     There are too many spaces here")
"There are too many spaces here"