9e61ef606fdfc5e93a3e23c41366dc544f3ae8d8
[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    #:with-ignore-errors
142    
143    ;; files.lisp
144    #:print-file-contents
145    #:read-file-to-string
146    #:read-file-to-strings
147    
148    ;; strings.lisp
149    #:string-append
150    #:count-string-words
151    #:substitute-string-for-char
152    #:string-trim-last-character
153    #:nstring-trim-last-character
154    #:string-hash
155    #:is-string-empty
156    #:is-char-whitespace
157    #:not-whitespace-char
158    #:is-string-whitespace
159    #:string-invert
160    #:escape-xml-string
161    #:make-usb8-array
162    #:usb8-array-to-string
163    #:string-to-usb8-array
164    #:substitute-chars-strings
165    #:add-sql-quotes
166    #:escape-backslashes
167    #:concat-separated-strings
168    #:print-separated-strings
169    #:lex-string
170    #:split-alphanumeric-string
171    
172    ;; strmatch.lisp
173    #:score-multiword-match
174    #:multiword-match
175    
176    ;; symbols.lisp
177    #:ensure-keyword
178    #:ensure-keyword-upcase
179    #:ensure-keyword-default-case
180    #:concat-symbol
181    #:concat-symbol-pkg
182    #:show
183    #:show-variables
184    #:show-functions
185    
186    ;; From attrib-class.lisp
187    #:attributes-class
188    #:slot-attribute
189    #:slot-attributes
190
191    #:generalized-equal
192
193    ;; From buffered input
194    
195    #:make-fields-buffer
196    #:read-buffered-fields
197    
198    ;; From datetime.lisp
199    #:pretty-date
200    #:date-string
201    #:print-float-units
202    #:print-seconds
203    #:posix-time-to-utime
204    
205    ;; From random.lisp
206    #:seed-random-generator
207    #:random-choice
208    
209    ;; From repl.lisp
210    #:make-repl
211    #:init/repl
212    
213    ;; From web-utils
214    #:*base-url*
215    #:base-url!
216    #:make-url
217    #:*standard-html-header*
218    #:*standard-xhtml-header*
219    #:*standard-xml-header*
220    #:user-agent-ie-p
221    #:decode-uri-query-string
222    #:split-uri-query-string
223    
224    ;; From xml-utils
225    #:sgml-header-stream
226    #:xml-tag-contents
227    #:positions-xml-tag-contents
228    #:cdata-string
229    #:write-cdata
230    
231    ;; From console
232    #:*console-msgs*
233    #:cmsg
234    #:cmsg-c
235    #:cmsg-add
236    #:cmsg-remove
237    #:fixme
238
239    ;; byte-stream
240    #:make-binary-array-output-stream
241    #:get-output-stream-data
242    #:dump-output-stream-data
243    #:make-byte-array-input-stream
244
245    ;; sockets.lisp
246    #:make-active-socket
247    #:close-active-socket
248    
249    ;; listener.lisp
250    #:init/listener
251    #:stop-all/listener
252    #:listener
253    
254    ;; fformat.lisp
255    #:fformat
256
257    ;; os.lisp
258    #:command-output
259    #:run-shell-command-output-stream
260    
261    ;; color.lisp
262    #:rgb->hsv
263    #:rgb255->hsv255
264    #:hsv->rgb
265    #:hsv255->rgb255
266    #:hsv-equal
267    #:hsv255-equal
268    #:hsv-similar
269    #:hsv255-similar
270    #:hue-difference
271    #:hue-difference-fixnum
272    ))
273
274
275