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