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