vl-string-right-trim

AutoCad AutoLISP Functions

 
vl-string-right-trim
 
 
 

Removes the specified characters from the end of a string

(vl-string-right-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 trailing characters in character-set removed.

Examples

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