pregexp.scm 提供了如下几个过程:pregexp,pregexp-match-positions,pregexp-match,pregexp-split,pregexp-replace,pregexp-replace*,pregexp-quote. 由 pregexp.scm 引入的所有过程都有 'pregexp' 前缀,所以它们不太可能和 Scheme 中的其他名称冲突,包括由实现本身提供的正则表达式过程的名称。
([i]sub? s sub [d]): s if sub is a substring of s; or d. ([i]subx? s sub): index where sub starts in s. ([i]suf? s suf [d]): s if suf is a suffix of s; or d. (repl s from to): replace from with to in s. String maniuplation: (sup s ..): str! and...
(fiveam:run! 'test-str:replace-functions)Test suite names:replace-functions lengthen-functions ensure-functions pad-functions substring-functions list-functions from-list-to-string from-list-to-list from-string-to-list predicates, case-functions miscellaneous...
You can replace Clozure CL's toplevel function with your own, and then, when the image is loaded, the Lisp system immediately performs your tasks rather than the default tasks that make it a Lisp development system. If you save an image in which you have done this, the resulting Lisp ...
In our original example the SortValue expression,Substring(Person.LastName, 1, 1) + ‘‘ + Person.FirstName, was repeated in both the SELECT clause and ORDER BY statement. Now, by placing the SortValue expression within the SQL CTE, we only need to define it once!
The default value for FAT, which is also optional, "\s+|\s+$", causes this function to trim whitespace from the beggining and end of each substring. Here's an example: (split-n-trim "Hello beautiful world!") => '("Hello" "beautiful" "world!") function store-delete (ROOT KEY) ...