「Vl-string-right-trim」の版間の差分
| 編集の要約なし | 編集の要約なし | ||
| 1行目: | 1行目: | ||
| {{AutoLISP}} | |||
| ; 構文 | ; 構文 | ||
| : (vl-string-right-trim ''character-set'' ''string'')   | : (vl-string-right-trim ''character-set'' ''string'')   | ||
| 26行目: | 27行目: | ||
| (vl-string-right-trim " " "There are too many spaces here ")   | (vl-string-right-trim " " "There are too many spaces here ")   | ||
| "There are too many spaces here" | "There are too many spaces here" | ||
| (vl-string-right-trim "\\" "c:\\temp\\folder\\")  | |||
| </pre> | </pre> | ||
2021年3月27日 (土) 05:24時点における最新版
- 構文
- (vl-string-right-trim character-set string)
- 機能
- 指定された文字を、文字列の末尾から削除する。
- 引数
- 
- character-set : 除去する文字をリストした文字列。
- string : character-set を取り除く文字列。
 
- 戻り値
- character-set 引数内の文字と一致する文字を先頭からすべて除去した、string の部分文字列を含んだ文字列。
- サンプル
(vl-string-right-trim " ¥t¥n" " STR ¥n¥t ") " STR" (vl-string-right-trim "4321" "09876543210987654321") "0987654321098765" (vl-string-right-trim " " "There are too many spaces here ") "There are too many spaces here" (vl-string-right-trim "\\" "c:\\temp\\folder\\")
関連事項
- vl-string-right-trim 関数
- vl-string-left-trim 関数
- string-right-trim 関数 (Gz-Lib関数)
