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