CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoLISP 开发指南

vl-string-right-trim(AutoLISP)

2023-1-5 15:52| 发布者: admin| 查看: 488| 评论: 0|来自: AutoCAD

摘要: 从字符串末尾删除指定的字符

从字符串末尾删除指定的字符

支持的平台:视窗和 Mac OS

签名

(vl-string-right-trim char-set str)
字符集

类型:字符串

列出要删除的字符的文本值。

str

类型:字符串

要从字符集中去除的文本值。

返回值

类型:字符串

一个文本值,其中包含str子字符串,其中删除了字符集中的所有尾随字符

发布信息

    释放:

  • Windows 上的 AutoCAD R14 及更高版本
  • Mac OS 上的 AutoCAD 2011 及更高版本

例子

(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"

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )

GMT+8, 2024-5-19 14:29

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部