Created
December 18, 2016 02:37
-
-
Save zhouqiang-cl/d97bd98d97e495707b43606b8d18630d to your computer and use it in GitHub Desktop.
common lisp 的函数 STRING-TRIM, STRING-LEFT-TRIM, STRING-RIGHT-TRIM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
语法 | |
string-trim character-bag string => trimmed-string | |
string-left-trim character-bag string => trimmed-string | |
string-right-trim character-bag string => trimmed-string | |
参数和值 | |
character-bag --- 一个 character 的 sequence | |
string --- 一个 string 指示符 | |
trimmed-string --- 一个 string | |
描述 | |
不描述了 | |
代码 | |
* (string-trim "abc" "abcaakaaakabcaaa") | |
"kaaak" | |
* (string-trim '(#\Space #\Tab #\Newline) " garbanzo beans | |
") | |
"garbanzo beans" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment