CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 文档中心

vl-string-trim(AutoLISP)

2023-1-7 15:08| 发布者: admin| 查看: 178| 评论: 0|来自: AutoCAD

摘要: 从字符串的开头和结尾删除指定的字符

从字符串的开头和结尾删除指定的字符

支持的平台:视窗和 Mac OS

签名

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

类型:字符串

要删除的字符。

str

类型:字符串

要修剪字符集的文本值。

返回值

类型:字符串

修剪任何字符后的str 值。

发布信息

    释放:

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

例子

(vl-string-trim " \t\n" " \t\n STR \n\t ")
"STR"

(vl-string-trim "this is junk" "this is junk Don't call this junk! this is junk")
"Don't call this junk!"

(vl-string-trim " " "      Leave me alone   ")
"Leave me alone"

路过

雷人

握手

鲜花

鸡蛋

最新评论

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

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

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部