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