9b9316f9f05f9e23e1bde6adb93a968c1d6aee28
[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
139    ;; seq.lisp
140    #:nsubseq
141    
142    ;; math.lisp
143    #:ensure-integer
144    #:histogram
145    #:fixnum-width
146    #:scaled-epsilon
147    
148    ;; macros.lisp
149    #:time-iterations
150    #:time-seconds
151    #:in
152    #:mean
153    #:with-gensyms
154    #:let-if
155    #:let-when
156    #:aif
157    #:awhen
158    #:awhile
159    #:aand
160    #:acond
161    #:alambda
162    #:it
163    #:mac
164    #:mv-bind
165    #:deflex
166    #:def-cached-vector
167    #:def-cached-instance
168    #:with-ignore-errors
169    #:ppmx
170    #:defconst
171    
172    ;; files.lisp
173    #:print-file-contents
174    #:read-stream-to-string
175    #:read-file-to-string
176    #:read-stream-to-strings
177    #:read-file-to-strings
178    
179    ;; strings.lisp
180    #:string-append
181    #:count-string-words
182    #:substitute-string-for-char
183    #:string-trim-last-character
184    #:nstring-trim-last-character
185    #:string-hash
186    #:is-string-empty
187    #:is-char-whitespace
188    #:not-whitespace-char
189    #:is-string-whitespace
190    #:string-invert
191    #:escape-xml-string
192    #:make-usb8-array
193    #:usb8-array-to-string
194    #:string-to-usb8-array
195    #:substitute-chars-strings
196    #:add-sql-quotes
197    #:escape-backslashes
198    #:concat-separated-strings
199    #:print-separated-strings
200    #:lex-string
201    #:split-alphanumeric-string
202    
203    ;; strmatch.lisp
204    #:score-multiword-match
205    #:multiword-match
206    
207    ;; symbols.lisp
208    #:ensure-keyword
209    #:ensure-keyword-upcase
210    #:ensure-keyword-default-case
211    #:concat-symbol
212    #:concat-symbol-pkg
213    #:show
214    #:show-variables
215    #:show-functions
216    
217    ;; From attrib-class.lisp
218    #:attributes-class
219    #:slot-attribute
220    #:slot-attributes
221
222    #:generalized-equal
223
224    ;; From buffered input
225    
226    #:make-fields-buffer
227    #:read-buffered-fields
228    
229    ;; From datetime.lisp
230    #:pretty-date
231    #:date-string
232    #:print-float-units
233    #:print-seconds
234    #:posix-time-to-utime
235    
236    ;; From random.lisp
237    #:seed-random-generator
238    #:random-choice
239    
240    ;; From repl.lisp
241    #:make-repl
242    #:init/repl
243    
244    ;; From web-utils
245    #:*base-url*
246    #:base-url!
247    #:make-url
248    #:*standard-html-header*
249    #:*standard-xhtml-header*
250    #:*standard-xml-header*
251    #:user-agent-ie-p
252    #:decode-uri-query-string
253    #:split-uri-query-string
254    
255    ;; From xml-utils
256    #:sgml-header-stream
257    #:xml-tag-contents
258    #:positions-xml-tag-contents
259    #:cdata-string
260    #:write-cdata
261    
262    ;; From console
263    #:*console-msgs*
264    #:cmsg
265    #:cmsg-c
266    #:cmsg-add
267    #:cmsg-remove
268    #:fixme
269
270    ;; byte-stream
271    #:make-binary-array-output-stream
272    #:get-output-stream-data
273    #:dump-output-stream-data
274    #:make-byte-array-input-stream
275
276    ;; sockets.lisp
277    #:make-active-socket
278    #:close-active-socket
279    
280    ;; listener.lisp
281    #:init/listener
282    #:stop-all/listener
283    #:listener
284    
285    ;; fformat.lisp
286    #:fformat
287
288    ;; os.lisp
289    #:command-output
290    #:run-shell-command-output-stream
291    #:delete-directory-and-files
292    #:file-size
293
294    ;; color.lisp
295    #:rgb->hsv
296    #:rgb255->hsv255
297    #:hsv->rgb
298    #:hsv255->rgb255
299    #:hsv-equal
300    #:hsv255-equal
301    #:hsv-similar
302    #:hsv255-similar
303    #:hue-difference
304    #:hue-difference-fixnum
305    ))
306
307
308