5f10fb9a8071370d3de7d415d2e49e68dc351cde
[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-file-to-usb8-array
178    #:read-stream-to-strings
179    #:read-file-to-strings
180    
181    ;; strings.lisp
182    #:string-append
183    #:count-string-words
184    #:substitute-string-for-char
185    #:string-trim-last-character
186    #:nstring-trim-last-character
187    #:string-hash
188    #:is-string-empty
189    #:is-char-whitespace
190    #:not-whitespace-char
191    #:is-string-whitespace
192    #:string-invert
193    #:escape-xml-string
194    #:make-usb8-array
195    #:usb8-array-to-string
196    #:string-to-usb8-array
197    #:substitute-chars-strings
198    #:add-sql-quotes
199    #:escape-backslashes
200    #:concat-separated-strings
201    #:print-separated-strings
202    #:lex-string
203    #:split-alphanumeric-string
204    
205    ;; strmatch.lisp
206    #:score-multiword-match
207    #:multiword-match
208    
209    ;; symbols.lisp
210    #:ensure-keyword
211    #:ensure-keyword-upcase
212    #:ensure-keyword-default-case
213    #:concat-symbol
214    #:concat-symbol-pkg
215    #:show
216    #:show-variables
217    #:show-functions
218    
219    ;; From attrib-class.lisp
220    #:attributes-class
221    #:slot-attribute
222    #:slot-attributes
223
224    #:generalized-equal
225
226    ;; From buffered input
227    
228    #:make-fields-buffer
229    #:read-buffered-fields
230    
231    ;; From datetime.lisp
232    #:pretty-date
233    #:date-string
234    #:print-float-units
235    #:print-seconds
236    #:posix-time-to-utime
237    
238    ;; From random.lisp
239    #:seed-random-generator
240    #:random-choice
241    
242    ;; From repl.lisp
243    #:make-repl
244    #:init/repl
245    
246    ;; From web-utils
247    #:*base-url*
248    #:base-url!
249    #:make-url
250    #:*standard-html-header*
251    #:*standard-xhtml-header*
252    #:*standard-xml-header*
253    #:user-agent-ie-p
254    #:decode-uri-query-string
255    #:split-uri-query-string
256    
257    ;; From xml-utils
258    #:sgml-header-stream
259    #:xml-tag-contents
260    #:positions-xml-tag-contents
261    #:cdata-string
262    #:write-cdata
263    
264    ;; From console
265    #:*console-msgs*
266    #:cmsg
267    #:cmsg-c
268    #:cmsg-add
269    #:cmsg-remove
270    #:fixme
271
272    ;; byte-stream
273    #:make-binary-array-output-stream
274    #:get-output-stream-data
275    #:dump-output-stream-data
276    #:make-byte-array-input-stream
277
278    ;; sockets.lisp
279    #:make-active-socket
280    #:close-active-socket
281    
282    ;; listener.lisp
283    #:init/listener
284    #:stop-all/listener
285    #:listener
286    
287    ;; fformat.lisp
288    #:fformat
289
290    ;; os.lisp
291    #:command-output
292    #:run-shell-command-output-stream
293    #:delete-directory-and-files
294    #:file-size
295
296    ;; color.lisp
297    #:rgb->hsv
298    #:rgb255->hsv255
299    #:hsv->rgb
300    #:hsv255->rgb255
301    #:hsv-equal
302    #:hsv255-equal
303    #:hsv-similar
304    #:hsv255-similar
305    #:hue-difference
306    #:hue-difference-fixnum
307    ))
308
309
310