r11466: 07 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
[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-2006 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    #:prefixed-integer-string
53    #:integer-string
54    #:fast-string-search
55    #:string-substitute
56    #:string-to-list-skip-delimiter
57    #:string-starts-with
58    #:count-string-char
59    #:count-string-char-if
60    #:hexchar
61    #:charhex
62    #:encode-uri-string
63    #:decode-uri-string
64    #:uri-query-to-alist
65    #:non-alphanumericp
66    #:random-string
67    #:first-char
68    #:last-char
69    #:ensure-string
70    #:string-right-trim-one-char
71    #:string-strip-ending
72    #:string-maybe-shorten
73    #:string-elide
74    #:shrink-vector
75    #:collapse-whitespace
76    #:string->list
77    #:trim-non-alphanumeric
78    #:binary-sequence-to-hex-string
79
80    ;; io.lisp
81    #:indent-spaces
82    #:indent-html-spaces
83    #:print-n-chars
84    #:print-n-strings
85    #:print-list
86    #:print-rows
87    #:write-fixnum
88    #:file-subst
89    #:stream-subst
90    #:null-output-stream
91    #:directory-tree
92    #:write-utime-hms
93    #:write-utime-hm
94    #:write-utime-ymdhms
95    #:write-utime-ymdhm
96    #:write-utime-hms-stream
97    #:write-utime-hm-stream
98    #:write-utime-ymdhms-stream
99    #:write-utime-ymdhm-stream
100    #:with-utime-decoding
101    #:with-utime-decoding-utc-offset
102    #:is-dst
103    #:year
104    #:month
105    #:day-of-month
106    #:hour
107    #:minute
108    #:second
109    #:daylight-p
110    #:zone
111    #:day-of-month
112    #:day-of-week
113    #:+datetime-number-strings+
114    #:utc-offset
115    #:copy-binary-stream
116
117    ;; impl.lisp
118    #:probe-directory
119    #:cwd
120    #:quit
121    #:command-line-arguments
122    #:copy-file
123    #:run-shell-command
124
125    ;; lists.lisp
126    #:remove-from-tree-if
127    #:find-tree
128    #:with-each-file-line
129    #:with-each-stream-line
130    #:remove-keyword
131    #:remove-keywords
132    #:append-sublists
133    #:alist-elem-p
134    #:alistp
135    #:get-alist
136    #:update-alist
137    #:alist-plist
138    #:plist-alist
139    #:update-plist
140    #:get-plist
141    #:flatten
142    #:unique-slot-values
143
144    ;; seq.lisp
145    #:nsubseq
146
147    ;; math.lisp
148    #:ensure-integer
149    #:histogram
150    #:fixnum-width
151    #:scaled-epsilon
152    #:sinc
153    #:numbers-within-percentage
154
155    ;; macros.lisp
156    #:time-iterations
157    #:time-seconds
158    #:in
159    #:mean
160    #:with-gensyms
161    #:let-if
162    #:let-when
163    #:aif
164    #:awhen
165    #:awhile
166    #:aand
167    #:acond
168    #:alambda
169    #:it
170    #:mac
171    #:mv-bind
172    #:deflex
173    #:def-cached-vector
174    #:def-cached-instance
175    #:with-ignore-errors
176    #:ppmx
177    #:defconstant*
178    #:defvar-unbound
179
180    ;; files.lisp
181    #:print-file-contents
182    #:read-stream-to-string
183    #:read-file-to-string
184    #:read-file-to-usb8-array
185    #:read-stream-to-strings
186    #:read-file-to-strings
187
188    ;; strings.lisp
189    #:string-append
190    #:count-string-words
191    #:substitute-string-for-char
192    #:string-trim-last-character
193    #:nstring-trim-last-character
194    #:string-hash
195    #:is-string-empty
196    #:is-char-whitespace
197    #:not-whitespace-char
198    #:is-string-whitespace
199    #:string-invert
200    #:escape-xml-string
201    #:make-usb8-array
202    #:usb8-array-to-string
203    #:string-to-usb8-array
204    #:substitute-chars-strings
205    #:add-sql-quotes
206    #:escape-backslashes
207    #:concat-separated-strings
208    #:print-separated-strings
209    #:lex-string
210    #:split-alphanumeric-string
211
212    ;; strmatch.lisp
213    #:score-multiword-match
214    #:multiword-match
215
216    ;; symbols.lisp
217    #:ensure-keyword
218    #:ensure-keyword-upcase
219    #:ensure-keyword-default-case
220    #:concat-symbol
221    #:concat-symbol-pkg
222    #:show
223    #:show-variables
224    #:show-functions
225
226    ;; From attrib-class.lisp
227    #:attributes-class
228    #:slot-attribute
229    #:slot-attributes
230
231    #:generalized-equal
232
233    ;; From buffered input
234
235    #:make-fields-buffer
236    #:read-buffered-fields
237
238    ;; From datetime.lisp
239    #:pretty-date
240    #:date-string
241    #:print-float-units
242    #:print-seconds
243    #:posix-time-to-utime
244    #:utime-to-posix-time
245
246    ;; From random.lisp
247    #:seed-random-generator
248    #:random-choice
249
250    ;; From repl.lisp
251    #:make-repl
252    #:init/repl
253
254    ;; From web-utils
255    #:*base-url*
256    #:base-url!
257    #:make-url
258    #:*standard-html-header*
259    #:*standard-xhtml-header*
260    #:*standard-xml-header*
261    #:user-agent-ie-p
262    #:decode-uri-query-string
263    #:split-uri-query-string
264
265    ;; From xml-utils
266    #:sgml-header-stream
267    #:xml-tag-contents
268    #:positions-xml-tag-contents
269    #:cdata-string
270    #:write-cdata
271
272    ;; From console
273    #:*console-msgs*
274    #:cmsg
275    #:cmsg-c
276    #:cmsg-add
277    #:cmsg-remove
278    #:fixme
279
280    ;; byte-stream
281    #:make-binary-array-output-stream
282    #:get-output-stream-data
283    #:dump-output-stream-data
284    #:make-byte-array-input-stream
285
286    ;; sockets.lisp
287    #:make-active-socket
288    #:close-active-socket
289
290    ;; listener.lisp
291    #:init/listener
292    #:stop-all/listener
293    #:listener
294
295    ;; fformat.lisp
296    #:fformat
297
298    ;; os.lisp
299    #:command-output
300    #:run-shell-command-output-stream
301    #:delete-directory-and-files
302    #:file-size
303    #:getpid
304
305    ;; color.lisp
306    #:rgb->hsv
307    #:rgb255->hsv255
308    #:hsv->rgb
309    #:hsv255->rgb255
310    #:hsv-equal
311    #:hsv255-equal
312    #:hsv-similar
313    #:hsv255-similar
314    #:hue-difference
315    #:hue-difference-fixnum
316
317    ;; signals.lisp
318    #:set-signal-handler
319    #:remove-signal-handler
320    ))
321
322
323