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