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