r9992: new function
[kmrcl.git] / package.lisp
1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          package.lisp
6 ;;;; Purpose:       Package definition for kmrcl package
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Apr 2000
9 ;;;;
10 ;;;; $Id$
11 ;;;;
12 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
13 ;;;;
14 ;;;; KMRCL users are granted the rights to distribute and use this software
15 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
16 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 ;;;; *************************************************************************
18
19 (in-package #:cl-user)
20
21 (defpackage #:kmrcl
22   (:nicknames #:kl)
23   (:use #:cl)
24   (:export
25    #:ensure-integer
26    #:mklist
27    #:filter
28    #:map-and-remove-nils
29    #:appendnew
30    #:memo-proc
31    #:memoize
32    #:defun-memo
33    #:_f
34    #:compose
35    #:until
36    #:while
37    #:for
38
39    ;; strings.lisp
40    #:string-trim-whitespace
41    #:string-left-trim-whitespace
42    #:string-right-trim-whitespace
43    #:mapappend
44    #:mapcar-append-string
45    #:mapcar2-append-string
46    #:position-char
47    #:position-not-char
48    #:delimited-string-to-list
49    #:string-delimited-string-to-list
50    #:list-to-delimited-string
51    #:prefixed-fixnum-string
52    #:integer-string
53    #:fast-string-search
54    #:string-substitute
55    #:string-to-list-skip-delimiter
56    #:string-starts-with
57    #:count-string-char
58    #:count-string-char-if
59    #:hexchar
60    #:encode-uri-string
61    #:decode-uri-string
62    #:non-alphanumericp
63    #:random-string
64    #:first-char
65    #:last-char
66    #:ensure-string
67    #:string-right-trim-one-char
68    #:string-strip-ending
69    #:string-maybe-shorten
70    #:string-elide
71    #:shrink-vector
72    #:collapse-whitespace
73    #:string->list
74    #:trim-non-alphanumeric
75    
76    ;; io.lisp
77    #:indent-spaces
78    #:indent-html-spaces
79    #:print-n-chars
80    #:print-n-strings
81    #:print-list
82    #:print-rows
83    #:write-fixnum
84    #:file-subst
85    #:stream-subst
86    #:null-output-stream
87    #:directory-tree
88    #:write-utime-hms
89    #:write-utime-hm
90    #:write-utime-ymdhms
91    #:write-utime-ymdhm
92    #:write-utime-hms-stream
93    #:write-utime-hm-stream
94    #:write-utime-ymdhms-stream
95    #:write-utime-ymdhm-stream
96    #:with-utime-decoding
97    #:with-utime-decoding-utc-offset
98    #:is-dst
99    #:year
100    #:month
101    #:day-of-month
102    #:hour
103    #:minute
104    #:second
105    #:daylight-p
106    #:zone
107    #:day-of-month
108    #:day-of-week
109    #:+datetime-number-strings+   
110    #:utc-offset
111    #:copy-binary-stream
112
113    ;; impl.lisp
114    #:probe-directory
115    #:cwd
116    #:quit
117    #:command-line-arguments
118    #:copy-file
119    #:run-shell-command
120
121    ;; lists.lisp
122    #:remove-from-tree-if
123    #:find-tree
124    #:with-each-file-line
125    #:with-each-stream-line
126    #:remove-keyword
127    #:remove-keywords
128    #:append-sublists
129    #:alist-elem-p
130    #:alistp
131    #:get-alist
132    #:update-alist
133    #:alist-plist
134    #:plist-alist
135    #:update-plist
136    #:get-plist
137    #:flatten
138    #:unique-slot-values
139    
140    ;; seq.lisp
141    #:nsubseq
142    
143    ;; math.lisp
144    #:ensure-integer
145    #:histogram
146    #:fixnum-width
147    #:scaled-epsilon
148    
149    ;; macros.lisp
150    #:time-iterations
151    #:time-seconds
152    #:in
153    #:mean
154    #:with-gensyms
155    #:let-if
156    #:let-when
157    #:aif
158    #:awhen
159    #:awhile
160    #:aand
161    #:acond
162    #:alambda
163    #:it
164    #:mac
165    #:mv-bind
166    #:deflex
167    #:def-cached-vector
168    #:def-cached-instance
169    #:with-ignore-errors
170    #:ppmx
171    #:defconst
172    
173    ;; files.lisp
174    #:print-file-contents
175    #:read-stream-to-string
176    #:read-file-to-string
177    #:read-stream-to-strings
178    #:read-file-to-strings
179    
180    ;; strings.lisp
181    #:string-append
182    #:count-string-words
183    #:substitute-string-for-char
184    #:string-trim-last-character
185    #:nstring-trim-last-character
186    #:string-hash
187    #:is-string-empty
188    #:is-char-whitespace
189    #:not-whitespace-char
190    #:is-string-whitespace
191    #:string-invert
192    #:escape-xml-string
193    #:make-usb8-array
194    #:usb8-array-to-string
195    #:string-to-usb8-array
196    #:substitute-chars-strings
197    #:add-sql-quotes
198    #:escape-backslashes
199    #:concat-separated-strings
200    #:print-separated-strings
201    #:lex-string
202    #:split-alphanumeric-string
203    
204    ;; strmatch.lisp
205    #:score-multiword-match
206    #:multiword-match
207    
208    ;; symbols.lisp
209    #:ensure-keyword
210    #:ensure-keyword-upcase
211    #:ensure-keyword-default-case
212    #:concat-symbol
213    #:concat-symbol-pkg
214    #:show
215    #:show-variables
216    #:show-functions
217    
218    ;; From attrib-class.lisp
219    #:attributes-class
220    #:slot-attribute
221    #:slot-attributes
222
223    #:generalized-equal
224
225    ;; From buffered input
226    
227    #:make-fields-buffer
228    #:read-buffered-fields
229    
230    ;; From datetime.lisp
231    #:pretty-date
232    #:date-string
233    #:print-float-units
234    #:print-seconds
235    #:posix-time-to-utime
236    
237    ;; From random.lisp
238    #:seed-random-generator
239    #:random-choice
240    
241    ;; From repl.lisp
242    #:make-repl
243    #:init/repl
244    
245    ;; From web-utils
246    #:*base-url*
247    #:base-url!
248    #:make-url
249    #:*standard-html-header*
250    #:*standard-xhtml-header*
251    #:*standard-xml-header*
252    #:user-agent-ie-p
253    #:decode-uri-query-string
254    #:split-uri-query-string
255    
256    ;; From xml-utils
257    #:sgml-header-stream
258    #:xml-tag-contents
259    #:positions-xml-tag-contents
260    #:cdata-string
261    #:write-cdata
262    
263    ;; From console
264    #:*console-msgs*
265    #:cmsg
266    #:cmsg-c
267    #:cmsg-add
268    #:cmsg-remove
269    #:fixme
270
271    ;; byte-stream
272    #:make-binary-array-output-stream
273    #:get-output-stream-data
274    #:dump-output-stream-data
275    #:make-byte-array-input-stream
276
277    ;; sockets.lisp
278    #:make-active-socket
279    #:close-active-socket
280    
281    ;; listener.lisp
282    #:init/listener
283    #:stop-all/listener
284    #:listener
285    
286    ;; fformat.lisp
287    #:fformat
288
289    ;; os.lisp
290    #:command-output
291    #:run-shell-command-output-stream
292    #:delete-directory-and-files
293    #:file-size
294
295    ;; color.lisp
296    #:rgb->hsv
297    #:rgb255->hsv255
298    #:hsv->rgb
299    #:hsv255->rgb255
300    #:hsv-equal
301    #:hsv255-equal
302    #:hsv-similar
303    #:hsv255-similar
304    #:hue-difference
305    #:hue-difference-fixnum
306    ))
307
308
309